public function ListString::init

Overrides \Drupal\views\Plugin\views\argument\String::init().

Overrides String::init

File

drupal/core/modules/field/lib/Drupal/field/Plugin/views/argument/ListString.php, line 35
Definition of Drupal\field\Plugin\views\argument\ListString.

Class

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

Namespace

Drupal\field\Plugin\views\argument

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  parent::init($view, $display, $options);
  $field = field_info_field($this->definition['field_name']);
  $this->allowed_values = options_allowed_values($field);
}