Get config for [[Dropdown]] widget
@return array config options
5490
protected function getDropdownConfig() {
    $config = $this->dropdown;
    $config['id'] = ArrayHelper::getValue($config, 'id', null);
    $config['clientOptions'] = false;
    $config['view'] = $this->getView();
    
    return $config;
  }
91125
public function options()
    {
        $params = $this->params;
        return [
            'id'      => isset($params['id']) ? $params['id'] : null,
            'data'    => isset($params['data']) ? $params['data'] : null,
            'widgets' => isset($params['widgets']) ? $params['widgets'] : null,
        ];
    }
705315
public function getWidgetTypes()
    {
        $types = &gplcart_static('field.widget.types');

        if (isset($types)) {
            return $types;
        }

        $types = array(
            'button' => $this->translation->text('Button'),
            'radio' => $this->translation->text('Radio buttons'),
            'select' => $this->translation->text('Dropdown list')
        );

        $this->hook->attach('field.widget.types', $types, $this);
        return $types;
    }
388243
public function getViewHelperConfig()
    {
        return [
            'factories' => [
                View\Helper\Params::class => View\Helper\Factory\ParamsFactory::class,
                View\Helper\Config::class => View\Helper\Factory\ConfigFactory::class,
                View\Helper\Env::class => View\Helper\Factory\EnvFactory::class,
                View\Helper\CdnVersion::class => View\Helper\Factory\EnvFactory::class,
                View\Helper\FormLocalMessage::class => InvokableFactory::class,
                //\Zend\Form\View\Helper\FormElementErrors::class => View\Helper\Factory\FormElementErrorsFactory::class,
            ],
            'aliases' => [
                'helperParams' => View\Helper\Params::class,
                'helperConfig' => View\Helper\Config::class,
                'helperEnv' => View\Helper\Env::class,
                'helperCdnVersion' => View\Helper\CdnVersion::class,
                'formLocalMessage' => View\Helper\FormLocalMessage::class,
                'helperFormLocalMessage' => View\Helper\FormLocalMessage::class,
            ],
        ];
    }
981086
public function getOptions()
    {
        $options = [];
        foreach ($this->toOptionArray() as $values) {
            $options[$values['value']] = __($values['label']);
        }
        return $options;
    }
99670
public function getConfig()
    {
        return [

            'view_manager' => [
                'doctype' => 'HTML5',
                'display_exceptions' => true,
                'display_not_found_reason' => true,
                'not_found_template' => 'error/404',
                'exception_template' => 'error/index',
                'template_map' => [
                    'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
                    'error/404' => __DIR__ . '/../view/error/404.phtml',
                    'error/index' => __DIR__ . '/../view/error/index.phtml',
                ],
                'template_path_stack' => [
                    'btz_zf_base' => __DIR__ . '/../view',
                ],
            ],


            'router' => [ // Register router
                'routes' => [

                    'btzzfbase' => [
                        'type'    => Segment::class,
                        'options' => [
                            'route'    => '/btz-zf-base[/]',
                            'defaults' => [
                                'controller' => Controller\IndexController::class,
                                'action'     => 'index',
                            ],
                        ],
                        'may_terminate' => true,
                        'child_routes' => [
                            'index' => [
                                'type' => Segment::class,
                                'options' => [
                                    'route' => 'index[/:action[/:key]][:suffix]',
                                    'constraints' => [
                                        'action' => '[a-zA-Z][a-zA-Z0-9_-]+',
                                        'key' => '[a-zA-Z0-9_-]+',
                                        'suffix' => '(/|.html|.php)',
                                    ],
                                    'defaults' => [
                                        'controller' => Controller\IndexController::class,
                                        'action' => 'index',
                                    ],
                                ],
                            ],
                        ],
                    ],

                ],
            ],

            'log' => [
                'writers' => [
                    'stream' => [
                        'name' => 'stream',
                        'priority' => 999, //Warning: The priority not the log level. For writers priority.
                        'options' => [
                            'stream' => rtrim(sys_get_temp_dir(), '/|\\') . DIRECTORY_SEPARATOR . 'btz_log.txt',
                            'log_separator' => PHP_EOL,
                            'mode' => 'a',

                            'formatter' => [
                                'name' => 'simple',
                                'options' => [
                                    'dateTimeFormat' => 'Y-m-d H:i:s',
                                    'format' => '%timestamp% %priorityName% (%priority%): %message% %extra%',
                                ],
                            ],

                            'filters' => [
                                'priority' => [
                                    'name' => 'priority',
                                    'options' => [
                                        'operator' => '<=',
                                        'priority' => Logger::ERR,
                                    ],
                                ],
                            ],
                        ],
                    ],
                ],
            ],
        ];
    }
1074891
protected function getConfig()
    {
        $config = [
            'minValue'         => $this->getMinValue(),
            'maxValue'         => $this->getMaxValue(),
            'currentValue'     => $this->getCurrentValue(),
            'fieldFormat'      => $this->getFieldFormat(),
            'intervals'        => $this->getIntervals(),
            'urlTemplate'      => $this->getUrlTemplate(),
            'messageTemplates' => [
                'displayCount' => __('<%- count %> products'),
                'displayEmpty' => __('No products in the selected range.'),
            ],
        ];

        return $config;
    }
647282
public static function config($option = null)
    {
        if (is_array($option)) {
            self::$config = new DataArray($option);
        }
        if (self::$config instanceof DataArray) {
            return self::$config->get();
        }
        return [];
    }
1330405
public function getExtendedConfig() {
        $config = array();
        foreach ($this->getOption(self::OPTION_CONFIG_SOURCES) as $key => $source) {
            $config[$key] = $source->getConfig();
        }
        return $config;
    }
1046023
protected function getOptions()
    {
        return array(
          array('filename', 'F', InputOption::VALUE_OPTIONAL, 'The path to the helper file', $this->filename),
          array('dir', 'D', InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY, 'The model dir', array()),
          array('write', 'W', InputOption::VALUE_NONE, 'Write to Model file'),
          array('nowrite', 'N', InputOption::VALUE_NONE, 'Don\'t write to Model file'),
          array('reset', 'R', InputOption::VALUE_NONE, 'Remove the original phpdocs instead of appending'),
          array('smart-reset', 'r', InputOption::VALUE_NONE, 'Refresh the properties/methods list, but keep the text'),
          array('ignore', 'I', InputOption::VALUE_OPTIONAL, 'Which models to ignore', ''),
        );
    }
388365
public function getWidgetOptions() {
    $options = new \stdClass;
    foreach (array('width','height','disabled','scrollAnimationDuration','enabledHover','collapsible','animationType','enableScrollAnimation','contentTransitionDuration','toggleMode','selectedItem','position','selectionTracker','scrollable','scrollPosition','scrollStep','autoHeight','showCloseButtons','closeButtonSize','initTabContent','keyboardNavigation','reorder','enableDropAnimation','dropAnimationDuration') as $option) {
      if ($this->$option !== "__spec__undefined") {
        $options->$option = $this->$option;
      }
    }
    return $options;
  }
1056909
protected function getOptionsFields()
    {
        $fields = array(
            'showOptions' => array(
                'type' => 'checkbox',
                'label' => $this->t('field_showOptions'),
                'description' => $this->t('desc_showOptions'),
                'options' => array(
                    'optionsShow' => $this->t('option_optionsShow'),
                ),
            ),
            'optionsAllOn1Line' => array(
                'type' => 'select',
                'label' => $this->t('field_optionsAllOn1Line'),
                'options' => array(
                    0 => $this->t('option_do_not_use'),
                    PHP_INT_MAX => $this->t('option_always'),
                ) + array_combine(range(1, 10), range(1, 10)),
            ),
            'optionsAllOnOwnLine' => array(
                'type' => 'select',
                'label' => $this->t('field_optionsAllOnOwnLine'),
                'options' => array(
                    PHP_INT_MAX => $this->t('option_do_not_use'),
                    1 => $this->t('option_always'),
                ) + array_combine(range(2, 10), range(2, 10)),
            ),
            'optionsMaxLength' => array(
                'type' => 'number',
                'label' => $this->t('field_optionsMaxLength'),
                'description' => $this->t('desc_optionsMaxLength'),
                'attributes' => array(
                    'min' => 1,
                ),
            ),
        );
        return $fields;
    }
824663
public function getConfig() {
		$result = [];
		$pluginName = $this->_getPluginName();
		if (empty($pluginName) || !Configure::check($pluginName)) {
			return $result;
		}

		$result = (array)Configure::read($pluginName);

		return $result;
	}
4881
protected function getOptions()
    {
        $options = array();

        foreach ($this->getModuleServices() as $module)
        {
            // Create a new option object based on the <option /> element.
            $tmp = \JHtml::_(
                'select.option', $module,
                \JText::_(trim((string) $module)), 'value', 'text'
            );

            // Add the option object to the result set.
            $options[] = $tmp;
        }

        reset($options);

        return $options;
    }
1133946
public function getOptionDefaults()
    {
        $values = array();
        foreach ($this->options as $option) {
            $values[$option->getName()] = $option->getDefault();
        }

        return $values;
    }
446931
protected function getOptions()
	{
		// Initialize variables.
		$options = array();

		// Convert to name => name array.
		foreach (Manager::getStores() as $store)
		{
			$options[] = Dropdown::option($store, App::get('language')->txt('JLIB_FORM_VALUE_CACHE_' . $store), 'value', 'text');
		}

		$options = array_merge(parent::getOptions(), $options);

		return $options;
	}
653397
public function getOptions()
    {
        $selectedValues = $this->getValueArray();
        $defaultItems = $this->getDefaultItems();
        $disabledItems = $this->getDisabledItems();

        // Generate list of options to display
        $odd = false;
        $formID = $this->ID();
        $options = new ArrayList();
        foreach ($this->getSource() as $itemValue => $title) {
            $itemID = Convert::raw2htmlid("{$formID}_{$itemValue}");
            $odd = !$odd;
            $extraClass = $odd ? 'odd' : 'even';
            $extraClass .= ' val' . preg_replace('/[^a-zA-Z0-9\-\_]/', '_', $itemValue);

            $itemChecked = in_array($itemValue, $selectedValues) || in_array($itemValue, $defaultItems);
            $itemDisabled = $this->isDisabled() || in_array($itemValue, $disabledItems);

            $options->push(new ArrayData(array(
                'ID' => $itemID,
                'Class' => $extraClass,
                'Name' => "{$this->name}[{$itemValue}]",
                'Value' => $itemValue,
                'Title' => $title,
                'isChecked' => $itemChecked,
                'isDisabled' => $itemDisabled,
            )));
        }
        $this->extend('updateGetOptions', $options);
        return $options;
    }