Lines Matching refs:attributes
37 // Quick check to see if we might have attributes
46 // matching individual attributes since they won't need to look ahead for the closing '}'
47 // while dealing with the fact that attributes can technically contain curly braces.
60 /** @var array<string, mixed> $attributes */
61 $attributes = [];
64 $attributes['id'] = \substr($attribute, 1);
70 $attributes['class'][] = \substr($attribute, 1);
86 $attributes['class'][] = $class;
89 $attributes[\trim($name)] = \trim($value);
93 if (isset($attributes['class'])) {
94 $attributes['class'] = \implode(' ', (array) $attributes['class']);
97 return $attributes;
108 $attributes = [];
111 $arg = $arg->data->get('attributes');
122 $attributes['class'][] = $class;
128 $attributes = \array_merge($attributes, $arg);
131 if (isset($attributes['class'])) {
132 $attributes['class'] = \implode(' ', $attributes['class']);
135 return $attributes;