You are here

public function AttributeString::__toString in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Template/AttributeString.php \Drupal\Core\Template\AttributeString::__toString()

Implements the magic __toString() method.

Overrides AttributeValueBase::__toString

File

core/lib/Drupal/Core/Template/AttributeString.php, line 32
Contains \Drupal\Core\Template\AttributeString.

Class

AttributeString
A class that represents most standard HTML attributes.

Namespace

Drupal\Core\Template

Code

public function __toString() {
  return Html::escape($this->value);
}