We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(If a single "vars" element is added, it seems to work)
Working Example:
<?php /** * Alert Block. */ class AlertBlock extends PhpBlock { ... /** * @inheritDoc */ public function config() { return [ 'vars' => [ [ 'var' => 'test', 'label' => 'Test', 'type' => self::TYPE_TEXT ] ], 'cfgs' => [ [ 'var' => 'alertType', 'type' => self::TYPE_SELECT, 'label' => 'Alert Type', 'options' => BlockHelper::selectArrayOption([ 'primary' => 'Primary', 'secondary' => 'Secondary', 'success' => 'Success', 'danger' => 'Danger', 'warning' => 'Warning', 'info' => 'Info', 'light' => 'Light', 'dark' => 'Dark', ]) ], [ 'var' => 'alertDismissable', 'type' => self::TYPE_CHECKBOX, 'label' => 'Dismissable Alert', ] ], 'placeholders' => [ ['var' => 'alertContent', 'label' => 'Alert Content'], ], ]; } ... }
Not Working Example:
<?php /** * Alert Block. */ class AlertBlock extends PhpBlock { ... /** * @inheritDoc */ public function config() { return [ 'cfgs' => [ [ 'var' => 'alertType', 'type' => self::TYPE_SELECT, 'label' => 'Alert Type', 'options' => BlockHelper::selectArrayOption([ 'primary' => 'Primary', 'secondary' => 'Secondary', 'success' => 'Success', 'danger' => 'Danger', 'warning' => 'Warning', 'info' => 'Info', 'light' => 'Light', 'dark' => 'Dark', ]) ], [ 'var' => 'alertDismissable', 'type' => self::TYPE_CHECKBOX, 'label' => 'Dismissable Alert', ] ], 'placeholders' => [ ['var' => 'alertContent', 'label' => 'Alert Content'], ], ]; } ... }
The text was updated successfully, but these errors were encountered:
ee7490a
nadar
No branches or pull requests
What steps will reproduce the problem?
What is the expected result?
What do you get instead? (A Screenshot can help us a lot!)
(If a single "vars" element is added, it seems to work)
Working Example:
Not Working Example:
The text was updated successfully, but these errors were encountered: