- Token name and options are now passed through parse() method

This commit is contained in:
mcndave committed 2023-02-02 19:38:20 +00:00
1 parent 77d05ae051
commit aba66479be
12 files changed
+114 -150

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ class UiPopup extends UiElement implements Extension {
'class' => 'ui-popup',
];
public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token) : string
public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token, array $options = []) : string
{
return "<?php echo 'ui-popup=\"' . ( new \\" . static::class . "() )->buildAttributes($arguments) . '\"' ?>";
}