You are here

protected function Tid::defineOptions in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php \Drupal\taxonomy\Plugin\views\argument_default\Tid::defineOptions()

Retrieve the options when this is a new access control plugin

Overrides ArgumentDefaultPluginBase::defineOptions

File

core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php, line 96

Class

Tid
Taxonomy tid default argument.

Namespace

Drupal\taxonomy\Plugin\views\argument_default

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['term_page'] = [
    'default' => TRUE,
  ];
  $options['node'] = [
    'default' => FALSE,
  ];
  $options['anyall'] = [
    'default' => ',',
  ];
  $options['limit'] = [
    'default' => FALSE,
  ];
  $options['vids'] = [
    'default' => [],
  ];
  return $options;
}