function public function SettingBase::getOptions

8.x-3.x SettingBase.php public SettingBase::getOptions()

Retrieves the settings options, if set.

Return value

array An array of options.

Overrides SettingInterface::getOptions

Class

SettingBase
Base class for a setting.

Namespace

Drupal\bootstrap\Plugin\Setting

Source src/Plugin/Setting/SettingBase.php (line 168)

public function getOptions() {
  return isset($this->pluginDefinition['options']) ? (array) $this->pluginDefinition['options'] : [];
}