options_field_views_data

options_field_views_data(FieldStorageConfigInterface $field) Implements hook_field_views_data(). Views integration for list fields. Have a different filter handler and argument handlers for list fields. This should allow to select values of the list. File core/modules/options/options.views.inc, line 19 Provide Views data for options.module. Code function options_field_views_data(FieldStorageConfigInterface $field) { $data = views_field_default_views_data($field); foreach ($data as $table

options_field_storage_config_update_forbid

options_field_storage_config_update_forbid(FieldStorageConfigInterface $field_storage, FieldStorageConfigInterface $prior_field_storage) Implements hook_field_storage_config_update_forbid(). File core/modules/options/options.module, line 108 Defines selection, check box and radio button widgets for text and numeric fields. Code function options_field_storage_config_update_forbid(FieldStorageConfigInterface $field_storage, FieldStorageConfigInterface $prior_field_storage) { if ($field_storag

options_field_storage_config_update

options_field_storage_config_update(FieldStorageConfigInterface $field_storage) Implements hook_ENTITY_TYPE_update() for 'field_storage_config'. File core/modules/options/options.module, line 39 Defines selection, check box and radio button widgets for text and numeric fields. Code function options_field_storage_config_update(FieldStorageConfigInterface $field_storage) { drupal_static_reset('options_allowed_values'); }

options_field_storage_config_delete

options_field_storage_config_delete(FieldStorageConfigInterface $field_storage) Implements hook_ENTITY_TYPE_delete() for 'field_storage_config'. File core/modules/options/options.module, line 46 Defines selection, check box and radio button widgets for text and numeric fields. Code function options_field_storage_config_delete(FieldStorageConfigInterface $field_storage) { drupal_static_reset('options_allowed_values'); }

options_allowed_values

options_allowed_values(FieldStorageDefinitionInterface $definition, FieldableEntityInterface $entity = NULL) Returns the array of allowed values for a list field. The strings are not safe for output. Keys and values of the array should be sanitized through \Drupal\Core\Field\AllowedTagsXssTrait::fieldFilterXss() before being displayed. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $definition: The field storage definition. \Drupal\Core\Entity\FieldableEntityInterface|null $enti

OptionsProviderInterface::getSettableValues

public OptionsProviderInterface::getSettableValues(AccountInterface $account = NULL) Returns an array of settable values. If the optional $account parameter is passed, then the array is filtered to values settable by the account. Parameters \Drupal\Core\Session\AccountInterface $account: (optional) The user account for which to filter the settable values. If omitted, all settable values are returned. Return value array An array of settable values. File core/lib/Drupal/Core/TypedData/OptionsPr

OptionsProviderInterface::getSettableOptions

public OptionsProviderInterface::getSettableOptions(AccountInterface $account = NULL) Returns an array of settable values with labels for display. If the optional $account parameter is passed, then the array is filtered to values settable by the account. Parameters \Drupal\Core\Session\AccountInterface $account: (optional) The user account for which to filter the settable options. If omitted, all settable options are returned. Return value array An array of settable options for the object tha

OptionsProviderInterface::getPossibleValues

public OptionsProviderInterface::getPossibleValues(AccountInterface $account = NULL) Returns an array of possible values. If the optional $account parameter is passed, then the array is filtered to values viewable by the account. Parameters \Drupal\Core\Session\AccountInterface $account: (optional) The user account for which to filter the possible values. If omitted, all possible values are returned. Return value array An array of possible values. File core/lib/Drupal/Core/TypedData/OptionsPr

OptionsProviderInterface::getPossibleOptions

public OptionsProviderInterface::getPossibleOptions(AccountInterface $account = NULL) Returns an array of possible values with labels for display. If the optional $account parameter is passed, then the array is filtered to values viewable by the account. Parameters \Drupal\Core\Session\AccountInterface $account: (optional) The user account for which to filter the possible options. If omitted, all possible options are returned. Return value array An array of possible options for the object tha

OptionsProviderInterface

Interface for retrieving all possible and settable values. While possible values specify which values existing data might have, settable values define the values that are allowed to be set by a user. For example, in an workflow scenario, the settable values for a state field might depend on the currently set state, while possible values are all states. Thus settable values would be used in an editing context, while possible values would be used for presenting filtering options in a search. For