public function AttributeBoolean::__toString

Implements the magic __toString() method.

Overrides AttributeValueBase::__toString

1 call to AttributeBoolean::__toString()
AttributeBoolean::render in drupal/core/lib/Drupal/Core/Template/AttributeBoolean.php
Overrides AttributeValueBase::render().

File

drupal/core/lib/Drupal/Core/Template/AttributeBoolean.php, line 42
Definition of Drupal\Core\Template\AttributeBoolean.

Class

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

Namespace

Drupal\Core\Template

Code

public function __toString() {
  $this->printed = TRUE;
  return $this->value === FALSE ? '' : check_plain($this->name);
}