public function StringListField::init in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/options/src/Plugin/views/argument/StringListField.php \Drupal\options\Plugin\views\argument\StringListField::init()
Overrides Drupal\views\Plugin\views\HandlerBase:init().
Overrides StringArgument::init
File
- core/
modules/ options/ src/ Plugin/ views/ argument/ StringListField.php, line 40 - Contains \Drupal\options\Plugin\views\argument\StringListField.
Class
- StringListField
- Argument handler for list field to show the human readable name in 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);
}