Answers an array of options for the button annotation field.

@return array
765134
public function getButtonAnnotationOptions()
    {
        return [
            self::ANNOTATION_NONE     => _t(__CLASS__ . '.NONE', 'None'),
            self::ANNOTATION_BUBBLE   => _t(__CLASS__ . '.BUBBLE', 'Bubble'),
            self::ANNOTATION_INLINE   => _t(__CLASS__ . '.INLINE', 'Inline'),
            self::ANNOTATION_VERTICAL => _t(__CLASS__ . '.VERTICALBUBBLE', 'Vertical Bubble')
        ];
    }
911465
protected function options()
    {
        $types  = FieldType::all(['id', 'name', 'type']);
        $return = [];
        foreach ($types as $type) {
            $return[$type->id] = ucfirst(Str::humanize(is_null($type->type) ? $type->name : $type->name . ' ' . $type->type));
        }
        return $return;
    }
658768
public function getDefaultOptions(): array
    {
        $options = parent::getDefaultOptions();

        // Check the "type" attribute. If it is not set,
        // let's define it by default to "submit".
        if (! isset($options['attributes']['type'])) {
            $options['attributes']['type'] = 'submit';
        }

        // By default, disable button field type to be mapped
        // to a data object.
        $options['mapped'] = false;

        return $options;
    }
22640
public function toOptionArray()
    {
        $options[] = ['label' => '', 'value' => ''];
        $availableOptions = $this->getAvailable();
        foreach ($availableOptions as $key => $value) {
            $options[] = [
                'label' => $value,
                'value' => $key,
            ];
        }

        return $options;
    }
711636
public function getLinkModeOptions()
    {
        return [
            self::LINK_MODE_TITLE  => _t(__CLASS__ . '.TITLE', 'Title'),
            self::LINK_MODE_BUTTON => _t(__CLASS__ . '.BUTTON', 'Button'),
            self::LINK_MODE_BOTH   => _t(__CLASS__ . '.BOTHTITLEANDBUTTON', 'Both Title and Button')
        ];
    }
1364546
protected function getOptions()
    {
        $options = [];

        $allExtensionOption = [
            'class' => 'alltests',
            'value' => \Tx_Phpunit_Testable::ALL_EXTENSIONS,
        ];
        if ($this->isOptionSelected(\Tx_Phpunit_Testable::ALL_EXTENSIONS)) {
            $allExtensionOption['selected'] = 'selected';
        }
        $options[] = $allExtensionOption;

        /** @var \Tx_Phpunit_Testable $testable */
        foreach ($this->testFinder->getTestablesForEverything() as $testable) {
            $extensionOption = [
                'style' => $this->createIconStyle($testable->getKey()),
                'value' => $testable->getKey(),
            ];
            if ($this->isOptionSelected($testable->getKey())) {
                $extensionOption['selected'] = 'selected';
            }

            $options[] = $extensionOption;
        }

        return $options;
    }
342672
public function getButtonAttributes()
    {
        $attributes = [
            'type' => 'button',
            'class' => $this->ButtonClass,
            'title' => $this->ButtonLabel,
            'aria-label' => $this->ButtonLabel,
            'aria-expanded' => 'false',
            'aria-controls' => $this->CollapseHTMLID,
            'data-target' => $this->CollapseCSSID,
            'data-toggle' => 'collapse'
        ];
        
        $this->extend('updateButtonAttributes', $attributes);
        
        return $attributes;
    }
1109950
public function getOptions()
    {
        $options = array();
        foreach ($this->commandOptions as $key => $value) {
            $options[$key]=$this->$value;
        }
        return $options;
    }
1189394
public function getCMSFields()
    {
        // Obtain Field Objects (from parent):
        
        $fields = parent::getCMSFields();
        
        // Create Style Fields:
        
        $fields->addFieldsToTab(
            'Root.Style',
            [
                FieldSection::create(
                    'NavigationStyle',
                    $this->fieldLabel('NavigationStyle'),
                    [
                        TextField::create(
                            'ButtonMargin',
                            $this->fieldLabel('ButtonMargin')
                        ),
                        TextField::create(
                            'ButtonPaddingX',
                            $this->fieldLabel('ButtonPaddingX')
                        ),
                        TextField::create(
                            'ButtonPaddingY',
                            $this->fieldLabel('ButtonPaddingY')
                        )
                    ]
                )
            ]
        );
        
        // Answer Field Objects:
        
        return $fields;
    }
895514
private function getChartOptions(): array
    {
        $groupByField = $this->getGroupByField();
        if (!$groupByField) {
            return [];
        }

        list($plugin, $controller) = pluginSplit($this->entity->get('model'));
        list($prefix, $fieldName) = pluginSplit($groupByField);

        $result = [];
        foreach ($this->charts as $chart) {
            $result[] = [
                'chart' => $chart['type'],
                'icon' => $chart['icon'],
                'id' => Inflector::delimit($chart['type']) . '_' . $this->getTableId(),
                'ajax' => [
                    'url' => Router::url([
                        'plugin' => $plugin,
                        'controller' => $controller,
                        'action' => 'search',
                        $this->entity->get('id')
                    ]),
                    'format' => 'pretty',
                ],
                'options' => [
                    'resize' => true,
                    'hideHover' => true,
                    'labels' => [Inflector::humanize(Search::GROUP_BY_FIELD), Inflector::humanize($fieldName)],
                    'xkey' => [$groupByField],
                    'ykeys' => [$prefix . '.' . Search::GROUP_BY_FIELD]
                ]
            ];
        }

        return $result;
    }
654914
public function getAllOptions()
    {
        $result = [];

        foreach ($this->getOptionArray() as $index => $value) {
            $result[] = ['value' => $index, 'label' => $value];
        }

        return $result;
    }
1053952
public function getOptionList()
    {
        return $list = $this->optionlist instanceOf Binding ? $this->optionlist->getValue() : $this->optionlist;
    }
1369923
public function getOptions()
    {
        $options = array();

        $options['backgroundColor'] = $this->getBackgroundColor()->__toString();
        $options['padding'] = $this->getPadding();
        $options['colorSaturation'] = $this->getColorSaturation();
        $options['grayscaleSaturation'] = $this->getGrayscaleSaturation();
        $options['colorLightness'] = $this->getColorLightness();
        $options['grayscaleLightness'] = $this->getGrayscaleLightness();

        if ($this->hues !== null) {
            $options['hues'] = $this->getHues();
        }

        return $options;
    }
682350
public function getOptions() 
    {
        $options = array();
        
        if ($this->valueSet) {
            $options['value'] = $this->getValue();
        } elseif ($this->hash !== null) {
            $options['hash'] = $this->getHash();
        }
        
        $options['size'] = $this->getSize();
        $options['style'] = $this->getStyle()->getOptions();

        if ($this->enableImageMagick !== null) {
            $options['enableImageMagick'] = $this->getEnableImageMagick();
        }
        
        if ($this->iconGenerator !== IconGenerator::getDefaultGenerator()) {
            $options['iconGenerator'] = $this->getIconGenerator();
        }
        
        return $options;
    }
781104
protected function getAdvancedConfigLinkFields()
    {
        return array(
            'tellAboutAdvancedSettings' => array(
                'type' => 'markup',
                'value' => sprintf($this->t('desc_advancedSettings'), $this->t('advanced_form_link_text'), $this->t('menu_advancedSettings')),
            ),
            'advancedSettingsLink' => array(
                'type' => 'markup',
                'value' => sprintf($this->t('button_link'), $this->t('advanced_form_link_text'), $this->shopCapabilities->getLink('advanced')),
            ),
        );
    }
467308
protected function getOptions()
    {
        return array_merge([
            ['model', 'm', InputOption::VALUE_OPTIONAL, 'Want a model for this table?', true],
            ['schema', 's', InputOption::VALUE_OPTIONAL, 'Optional schema to be attached to the migration', null],
        ], parent::getOptions());
    }
1094052
protected function getOptions()
	{
		$options = array();

		$select = new HtmlSelect;

		// Try to inject the text object into the field
		try
		{
			$select->setText($this->getText());
		}
		catch (\RuntimeException $exception)
		{
			// A Text object was not set, ignore the error and try to continue processing
		}

		// Initialize some field attributes.
		$filter = (string) $this->element['filter'];
		$exclude = (string) $this->element['exclude'];
		$hideNone = (string) $this->element['hide_none'];
		$hideDefault = (string) $this->element['hide_default'];

		// Get the path in which to search for file options.
		$path = (string) $this->element['directory'];

		if (!is_dir($path))
		{
			$path = JPATH_ROOT . '/' . $path;
		}

		// Prepend some default options based on field attributes.
		if (!$hideNone)
		{
			$text = $this->translateOptions
				? $this->getText()->alt('JOPTION_DO_NOT_USE', preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname))
				: '- None Selected -';

			$options[] = $select->option('-1', $text);
		}

		if (!$hideDefault)
		{
			$text = $this->translateOptions
				? $this->getText()->alt('JOPTION_USE_DEFAULT', preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname))
				: '- Use Default -';

			$options[] = $select->option('', $text);
		}

		// Get a list of folders in the search path with the given filter.
		$folders = Folder::folders($path, $filter);

		// Build the options list from the list of folders.
		if (is_array($folders))
		{
			foreach ($folders as $folder)
			{
				// Check to see if the file is in the exclude mask.
				if ($exclude)
				{
					if (preg_match(chr(1) . $exclude . chr(1), $folder))
					{
						continue;
					}
				}

				$options[] = $select->option($folder, $folder);
			}
		}

		// Merge any additional options in the XML definition.
		$options = array_merge(parent::getOptions(), $options);

		return $options;
	}