function NumberListField::init
Same name in other branches
- 9 core/modules/options/src/Plugin/views/argument/NumberListField.php \Drupal\options\Plugin\views\argument\NumberListField::init()
- 8.9.x core/modules/options/src/Plugin/views/argument/NumberListField.php \Drupal\options\Plugin\views\argument\NumberListField::init()
- 10 core/modules/options/src/Plugin/views/argument/NumberListField.php \Drupal\options\Plugin\views\argument\NumberListField::init()
Overrides ArgumentPluginBase::init
File
-
core/
modules/ options/ src/ Plugin/ views/ argument/ NumberListField.php, line 35
Class
- NumberListField
- Argument handler for list field to show human readable name in the summary.
Namespace
Drupal\options\Plugin\views\argumentCode
public function init(ViewExecutable $view, DisplayPluginBase $display, ?array &$options = NULL) {
parent::init($view, $display, $options);
$field_storage = $this->getFieldStorageDefinition();
$this->allowedValues = options_allowed_values($field_storage);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.