mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-62191 output: New extra attributes for single_button
Useful for data- attributes.
This commit is contained in:
parent
9528b1ff5b
commit
ca81e906e0
4 changed files with 36 additions and 3 deletions
|
@ -1998,6 +1998,8 @@ class core_renderer extends renderer_base {
|
|||
foreach ((array)$options as $key=>$value) {
|
||||
if (array_key_exists($key, $button)) {
|
||||
$button->$key = $value;
|
||||
} else {
|
||||
$button->set_attribute($key, $value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue