Same name in this branch
- 10 core/modules/options/src/Plugin/views/filter/ListField.php \Drupal\options\Plugin\views\filter\ListField
- 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
- 8.9.x core/modules/options/src/Plugin/views/filter/ListField.php \Drupal\options\Plugin\views\filter\ListField
- 9 core/modules/options/src/Plugin/views/filter/ListField.php \Drupal\options\Plugin\views\filter\ListField
Hierarchy
- class \Drupal\views\Plugin\views\filter\InOperator extends \Drupal\views\Plugin\views\filter\FilterPluginBase implements FilterOperatorsInterface
- class \Drupal\views\Plugin\views\filter\ManyToOne
- class \Drupal\options\Plugin\views\filter\ListField uses FieldAPIHandlerTrait
- class \Drupal\views\Plugin\views\filter\ManyToOne
Expanded class hierarchy of ListField
File
- core/
modules/ options/ src/ Plugin/ views/ filter/ ListField.php, line 17
Namespace
Drupal\options\Plugin\views\filterView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FieldAPIHandlerTrait:: |
protected | property | The entity field manager. | |
FieldAPIHandlerTrait:: |
protected | property | The field definition. | |
FieldAPIHandlerTrait:: |
protected | property | The field storage definition. | |
FieldAPIHandlerTrait:: |
protected | function | Returns the entity field manager. | |
FieldAPIHandlerTrait:: |
protected | function | Gets the field definition. | |
FieldAPIHandlerTrait:: |
protected | function | Gets the field storage configuration. | |
InOperator:: |
protected | property | Stores all operations which are available on the form. | |
InOperator:: |
protected | property | The filter title. | |
InOperator:: |
public | function | 1 | |
InOperator:: |
public | function | 1 | |
InOperator:: |
public | function | 1 | |
InOperator:: |
public | function | ||
InOperator:: |
public | function | Gets the value options. | 6 |
InOperator:: |
protected | function | ||
InOperator:: |
public | function | Build strings from the operators() for 'select' options. | 1 |
InOperator:: |
protected | function | ||
InOperator:: |
protected | function | 1 | |
InOperator:: |
public | function | 2 | |
InOperator:: |
public | function | When using exposed filters, we may be required to reduce the set. | |
InOperator:: |
public | function | ||
InOperator:: |
protected | function | 1 | |
ListField:: |
public | function |
Overrides ManyToOne:: |
|
ManyToOne:: |
public | property | Stores the Helper object which handles the many_to_one complexity. | |
ManyToOne:: |
protected | property |
Overrides InOperator:: |
|
ManyToOne:: |
protected | function |
Overrides InOperator:: |
1 |
ManyToOne:: |
public | function | ||
ManyToOne:: |
public | function |
Returns an array of operator information, keyed by operator ID. Overrides InOperator:: |
|
ManyToOne:: |
protected | function | ||
ManyToOne:: |
protected | function |
Overrides InOperator:: |
1 |