Same name in this branch
  1. 10 core/modules/options/src/Plugin/views/filter/ListField.php \Drupal\options\Plugin\views\filter\ListField
  2. 10 core/modules/options/src/Plugin/migrate/field/d7/ListField.php \Drupal\options\Plugin\migrate\field\d7\ListField
Same name and namespace in other branches
  1. 8.9.x core/modules/options/src/Plugin/views/filter/ListField.php \Drupal\options\Plugin\views\filter\ListField
  2. 9 core/modules/options/src/Plugin/views/filter/ListField.php \Drupal\options\Plugin\views\filter\ListField

Hierarchy

Expanded class hierarchy of ListField

File

core/modules/options/src/Plugin/views/filter/ListField.php, line 17

Namespace

Drupal\options\Plugin\views\filter
View source
class ListField extends ManyToOne {
  use FieldAPIHandlerTrait;

  /**
   * {@inheritdoc}
   */
  public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
    parent::init($view, $display, $options);
    $field_storage = $this
      ->getFieldStorageDefinition();

    // Set valueOptions here so getValueOptions() will just return it.
    $this->valueOptions = options_allowed_values($field_storage);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FieldAPIHandlerTrait::$entityFieldManager protected property The entity field manager.
FieldAPIHandlerTrait::$fieldDefinition protected property The field definition.
FieldAPIHandlerTrait::$fieldStorageDefinition protected property The field storage definition.
FieldAPIHandlerTrait::getEntityFieldManager protected function Returns the entity field manager.
FieldAPIHandlerTrait::getFieldDefinition protected function Gets the field definition.
FieldAPIHandlerTrait::getFieldStorageDefinition protected function Gets the field storage configuration.
InOperator::$valueOptions protected property Stores all operations which are available on the form.
InOperator::$valueTitle protected property The filter title.
InOperator::acceptExposedInput public function 1
InOperator::adminSummary public function 1
InOperator::buildExposeForm public function 1
InOperator::defaultExposeOptions public function
InOperator::getValueOptions public function Gets the value options. 6
InOperator::opEmpty protected function
InOperator::operatorOptions public function Build strings from the operators() for 'select' options. 1
InOperator::operatorValues protected function
InOperator::opSimple protected function 1
InOperator::query public function 2
InOperator::reduceValueOptions public function When using exposed filters, we may be required to reduce the set.
InOperator::validate public function
InOperator::valueSubmit protected function 1
ListField::init public function Overrides ManyToOne::init
ManyToOne::$helper public property Stores the Helper object which handles the many_to_one complexity.
ManyToOne::$valueFormType protected property Overrides InOperator::$valueFormType
ManyToOne::defineOptions protected function Overrides InOperator::defineOptions 1
ManyToOne::ensureMyTable public function
ManyToOne::operators public function Returns an array of operator information, keyed by operator ID. Overrides InOperator::operators
ManyToOne::opHelper protected function
ManyToOne::valueForm protected function Overrides InOperator::valueForm 1