Trait IdGeneratorTrait
A trait that provides id generating methods to be used in various widget classes.
Direct Users
Properties summary
-
$_idPrefix
protectedstring|null
Prefix for id attribute. -
$_idSuffixes
protectedarray
A list of id suffixes used in the current rendering.
Method Summary
-
_clearIds() protected
Clear the stored ID suffixes. -
_domId() protected
Generate an ID suitable for use in an ID attribute. -
_id() protected
Generate an ID attribute for an element.