Constructs a \Drupal\Core\Template\Attribute object.
array $attributes: An associative array of key-value pairs to be converted to attributes.
public function __construct($attributes = array()) {
foreach ($attributes as $name => $value) {
$this
->offsetSet($name, $value);
}
}