AttributeBoolean::render

public AttributeBoolean::render()

Returns a string representation of the attribute.

While __toString only returns the value in a string form, render() contains the name of the attribute as well.

Return value

string The string representation of the attribute.

Overrides AttributeValueBase::render

File

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

Class

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

Namespace

Drupal\Core\Template

Code

public function render() {
  return $this->__toString();
}
doc_Drupal
2016-10-29 08:45:07
Comments
Leave a Comment

Please login to continue.