Small bugfixe within the UiPopup Widget

This commit is contained in:
Dave M. 2021-01-06 20:24:54 +00:00
parent 6020fa300d
commit 34828f642c
1 changed files with 2 additions and 2 deletions

View File

@ -22,9 +22,9 @@ class UiPopup extends UiElement implements Extension {
return "<?php echo 'ui-popup=\"' . ( new \\" . static::class . "() )->buildAttributes($arguments) . '\"' ?>";
}
public function buildAttributes(string $name, array $variables = []) : string
public function buildAttributes(string $name, array $variables = [], $options = []) : string
{
return htmlentities(json_encode([ "name" => $name, "vars" => $variables ], JSON_HEX_APOS | JSON_HEX_QUOT), ENT_QUOTES, 'UTF-8');
return htmlentities(json_encode([ "name" => $name, "vars" => $variables, "options" => $options ], JSON_HEX_APOS | JSON_HEX_QUOT), ENT_QUOTES, 'UTF-8');
}
}