public function config() { return ['vars' => [['var' => 'moduleName', 'label' => Module::t('block_module_modulename_label'), 'type' => 'zaa-select', 'options' => $this->getModuleNames()]], 'cfgs' => [['var' => 'moduleController', 'label' => Module::t('block_module_modulecontroller_label'), 'type' => 'zaa-select', 'options' => BlockHelper::selectArrayOption($this->getControllerClasses())], ['var' => 'moduleAction', 'label' => Module::t('block_module_moduleaction_label'), 'type' => 'zaa-text'], ['var' => 'moduleActionArgs', 'label' => Module::t('block_module_moduleactionargs_label'), 'type' => 'zaa-text']]]; }
/** * Create the options array for a zaa-select field based on an key value pairing * array. * * @deprecated Will be removed in 1.0.0 * @param array $options The key value array pairing the select array should be created from. * @since 1.0.0-beta5 */ protected function zaaSelectArrayOption(array $options) { trigger_error('Deprecated method ' . __METHOD__ . ' in ' . get_called_class() . ', use \\luya\\cms\\helpers\\BlockHelper::selectArrayOption() instead.', E_USER_DEPRECATED); return BlockHelper::selectArrayOption($options); }