public function ListString::init

Overrides Drupal\views\Plugin\views\HandlerBase:init().

Overrides String::init

File

drupal/core/modules/field/lib/Drupal/field/Plugin/views/argument/ListString.php, line 34
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, &$options) {
  parent::init($view, $options);
  $field = field_info_field($this->definition['field_name']);
  $this->allowed_values = options_allowed_values($field);
}