function Attribute::offsetSet
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Template/Attribute.php \Drupal\Core\Template\Attribute::offsetSet()
- 10 core/lib/Drupal/Core/Template/Attribute.php \Drupal\Core\Template\Attribute::offsetSet()
- 11.x core/lib/Drupal/Core/Template/Attribute.php \Drupal\Core\Template\Attribute::offsetSet()
3 calls to Attribute::offsetSet()
- Attribute::addClass in core/
lib/ Drupal/ Core/ Template/ Attribute.php - Adds classes or merges them on to array of existing CSS classes.
- Attribute::setAttribute in core/
lib/ Drupal/ Core/ Template/ Attribute.php - Sets values for an attribute key.
- Attribute::__construct in core/
lib/ Drupal/ Core/ Template/ Attribute.php - Constructs a \Drupal\Core\Template\Attribute object.
File
-
core/
lib/ Drupal/ Core/ Template/ Attribute.php, line 103
Class
- Attribute
- Collects, sanitizes, and renders HTML attributes.
Namespace
Drupal\Core\TemplateCode
public function offsetSet($name, $value) {
$this->storage[$name] = $this->createAttributeValue($name, $value);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.