function ListItemBase::getPossibleOptions

Same name in other branches
  1. 8.9.x core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php \Drupal\options\Plugin\Field\FieldType\ListItemBase::getPossibleOptions()
  2. 10 core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php \Drupal\options\Plugin\Field\FieldType\ListItemBase::getPossibleOptions()
  3. 11.x core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php \Drupal\options\Plugin\Field\FieldType\ListItemBase::getPossibleOptions()

Overrides OptionsProviderInterface::getPossibleOptions

1 call to ListItemBase::getPossibleOptions()
ListItemBase::getPossibleValues in core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php
Returns an array of possible values.

File

core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php, line 41

Class

ListItemBase
Plugin base class inherited by the options field types.

Namespace

Drupal\options\Plugin\Field\FieldType

Code

public function getPossibleOptions(AccountInterface $account = NULL) {
    return $this->getSettableOptions($account);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.