Implements the magic __toString() method.
Overrides AttributeValueBase::__toString
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);
}