You are here

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

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

Overrides ArgumentPluginBase::init

File

lib/Views/field/Plugin/views/argument/FieldList.php, line 34
Definition of views_handler_argument_field_list.

Class

FieldList
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);
}