W3cubDocs

/Drupal 8

public function AttributeValueBase::__construct

public AttributeValueBase::__construct($name, $value)

Constructs a \Drupal\Core\Template\AttributeValueBase object.

File

core/lib/Drupal/Core/Template/AttributeValueBase.php, line 37

Class

AttributeValueBase
Defines the base class for an attribute type.

Namespace

Drupal\Core\Template

Code

public function __construct($name, $value) {
  $this->name = $name;
  $this->value = $value;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Template!AttributeValueBase.php/function/AttributeValueBase::__construct/8.1.x