public function Attributes::setAttribute in Express 8
Sets an attribute on the array.
Parameters
string $name: The name of the attribute to set.
mixed $value: The value of the attribute to set.
See also
\Drupal\bootstrap\Utility\ArrayObject::offsetSet()
File
- themes/
contrib/ bootstrap/ src/ Utility/ Attributes.php, line 154 - Contains \Drupal\bootstrap\Utility\Attributes.
Class
- Attributes
- Class to help modify attributes.
Namespace
Drupal\bootstrap\UtilityCode
public function setAttribute($name, $value) {
$this
->offsetSet($name, $value);
}