You are here

protected function Tid::defineOptions in Drupal 9

Same name and namespace in other branches
  1. 8 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 76

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