From 34828f642caa8569386d9fbe7448741203c37296 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Wed, 6 Jan 2021 20:24:54 +0000 Subject: [PATCH] Small bugfixe within the UiPopup Widget --- src/Component/UiPopup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Component/UiPopup.php b/src/Component/UiPopup.php index e9a794e..e7a152f 100644 --- a/src/Component/UiPopup.php +++ b/src/Component/UiPopup.php @@ -22,9 +22,9 @@ class UiPopup extends UiElement implements Extension { return "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'); } }