You are here

public function ListString::init in Views (for Drupal 7) 8.3

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

Overrides String::init

File

lib/Views/field/Plugin/views/argument/ListString.php, line 34
Definition of Views\field\Plugin\views\argument\ListString.

Class

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

Namespace

Views\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);
}