public function AttributeBoolean::render in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Template/AttributeBoolean.php \Drupal\Core\Template\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 37 - Contains \Drupal\Core\Template\AttributeBoolean.
Class
- AttributeBoolean
- A class that defines a type of boolean HTML attribute.
Namespace
Drupal\Core\TemplateCode
public function render() {
return $this
->__toString();
}