AttributeBoolean::__toString

public AttributeBoolean::__toString()

Implements the magic __toString() method.

Overrides AttributeValueBase::__toString

File

core/lib/Drupal/Core/Template/AttributeBoolean.php, line 39

Class

AttributeBoolean
A class that defines a type of boolean HTML attribute.

Namespace

Drupal\Core\Template

Code

public function __toString() {
  return $this->value === FALSE ? '' : Html::escape($this->name);
}
doc_Drupal
2016-10-29 08:45:07
Comments
Leave a Comment

Please login to continue.