Skip to content
PHP Ecosystem
Explore

AttributeBag

API reference › HTML Helper › AttributeBag

final classUIAwesome\Html\Helper\AttributeBag
ExtendsUIAwesome\Html\Helper\Base\BaseAttributeBag
Sourcesrc/AttributeBag.php

Provides the concrete entry point for HTML attribute bag operations.

MethodDescriptionDefined by
get() staticReturns an attribute value by key.UIAwesome\Html\Helper\Base\BaseAttributeBag
normalizeKey() staticNormalizes an attribute key ensuring it has a specific prefix.UIAwesome\Html\Helper\Base\BaseAttributeBag
remove() staticRemoves an attribute from the bag.UIAwesome\Html\Helper\Base\BaseAttributeBag
replace() staticReplaces all attributes in the bag.UIAwesome\Html\Helper\Base\BaseAttributeBag
set() staticSets a plain attribute key/value pair.UIAwesome\Html\Helper\Base\BaseAttributeBag
setMany() staticSets multiple plain attributes.UIAwesome\Html\Helper\Base\BaseAttributeBag