You are here

public function NumberListField::init in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/options/src/Plugin/views/argument/NumberListField.php \Drupal\options\Plugin\views\argument\NumberListField::init()

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

Overrides ArgumentPluginBase::init

File

core/modules/options/src/Plugin/views/argument/NumberListField.php, line 41
Contains \Drupal\options\Plugin\views\argument\NumberListField.

Class

NumberListField
Argument handler for list field to show the human readable name in the 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);
}