function ListItemBase::getSettableOptions
Same name in other branches
- 9 core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php \Drupal\options\Plugin\Field\FieldType\ListItemBase::getSettableOptions()
- 10 core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php \Drupal\options\Plugin\Field\FieldType\ListItemBase::getSettableOptions()
- 11.x core/modules/options/src/Plugin/Field/FieldType/ListItemBase.php \Drupal\options\Plugin\Field\FieldType\ListItemBase::getSettableOptions()
Overrides OptionsProviderInterface::getSettableOptions
2 calls to ListItemBase::getSettableOptions()
- ListItemBase::getPossibleOptions in core/
modules/ options/ src/ Plugin/ Field/ FieldType/ ListItemBase.php - Returns an array of possible values with labels for display.
- ListItemBase::getSettableValues in core/
modules/ options/ src/ Plugin/ Field/ FieldType/ ListItemBase.php - Returns an array of settable values.
File
-
core/
modules/ options/ src/ Plugin/ Field/ FieldType/ ListItemBase.php, line 60
Class
- ListItemBase
- Plugin base class inherited by the options field types.
Namespace
Drupal\options\Plugin\Field\FieldTypeCode
public function getSettableOptions(AccountInterface $account = NULL) {
$allowed_options = options_allowed_values($this->getFieldDefinition()
->getFieldStorageDefinition(), $this->getEntity());
return $allowed_options;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.