public function AttributeString::__toString in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Template/AttributeString.php \Drupal\Core\Template\AttributeString::__toString()
- 9 core/lib/Drupal/Core/Template/AttributeString.php \Drupal\Core\Template\AttributeString::__toString()
Implements the magic __toString() method.
File
- core/
lib/ Drupal/ Core/ Template/ AttributeString.php, line 27
Class
- AttributeString
- A class that represents most standard HTML attributes.
Namespace
Drupal\Core\TemplateCode
public function __toString() {
return Html::escape((string) $this->value);
}