|
| __construct (public renderer_base readonly renderer_base $renderer, private array array $attributes=[],) |
| Constructor for the before_html_attributes hook.
|
|
| add_attribute (string $name, string $value) |
| Add an HTML attribute to the list.
|
|
| get_attributes () |
| Get the list of attributes.
|
|
| process_legacy_callbacks () |
| Process legacy callbacks.
|
|
| remove_attribute (string $name) |
| Remove an HTML attribute from the list.
|
|
◆ __construct()
core\hook\output\before_html_attributes::__construct |
( |
public renderer_base readonly renderer_base | $renderer, |
|
|
private array array | $attributes = [] ) |
Constructor for the before_html_attributes hook.
- Parameters
-
renderer_base | $renderer | The page renderer object |
array | $attributes | The list of HTML attributes initially on the tag |
- Parameters
-
$renderer | The page renderer |
$attributes | The list of HTML attributes initially on the tag |
◆ add_attribute()
core\hook\output\before_html_attributes::add_attribute |
( |
string | $name, |
|
|
string | $value ) |
Add an HTML attribute to the list.
- Parameters
-
◆ get_attributes()
core\hook\output\before_html_attributes::get_attributes |
( |
| ) |
|
Get the list of attributes.
- Return values
-
◆ remove_attribute()
core\hook\output\before_html_attributes::remove_attribute |
( |
string | $name | ) |
|
Remove an HTML attribute from the list.
- Parameters
-
The documentation for this class was generated from the following file:
- lib/classes/hook/output/before_html_attributes.php