function StringListField::init

Same name in other branches
  1. 9 core/modules/options/src/Plugin/views/argument/StringListField.php \Drupal\options\Plugin\views\argument\StringListField::init()
  2. 8.9.x core/modules/options/src/Plugin/views/argument/StringListField.php \Drupal\options\Plugin\views\argument\StringListField::init()
  3. 11.x core/modules/options/src/Plugin/views/argument/StringListField.php \Drupal\options\Plugin\views\argument\StringListField::init()

Overrides StringArgument::init

File

core/modules/options/src/Plugin/views/argument/StringListField.php, line 35

Class

StringListField
Argument handler for list field to show the human readable name in summary.

Namespace

Drupal\options\Plugin\views\argument

Code

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.