A trait that provides id generating methods to be used in various widget classes.
string|nullPrefix for id attribute.
array<string>A list of id suffixes used in the current rendering.
Clear the stored ID suffixes.
Generate an ID suitable for use in an ID attribute.
Generate an ID attribute for an element.
Generate an ID suffix.
_clearIds(): void
Clear the stored ID suffixes.
void_domId(string $value): string
Generate an ID suitable for use in an ID attribute.
string $value The value to convert into an ID.
string_id(string $name, string $val): string
Generate an ID attribute for an element.
Ensures that id's for a given set of fields are unique.
string $name The ID attribute name.
string $val The ID attribute value.
string_idSuffix(string $val): string
Generate an ID suffix.
Ensures that id's for a given set of fields are unique.
string $val The ID attribute value.
stringPrefix for id attribute.
string|nullA list of id suffixes used in the current rendering.
array<string>
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/trait-Cake.View.Helper.IdGeneratorTrait.html