MDL-62191 output: New extra attributes for single_button

Useful for data- attributes.
This commit is contained in:
David Monllaó 2019-09-03 15:30:06 +08:00
parent 9528b1ff5b
commit ca81e906e0
4 changed files with 36 additions and 3 deletions

View file

@ -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);
}
}