function Tid::defineOptions

Same name in other branches
  1. 9 core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php \Drupal\taxonomy\Plugin\views\argument_default\Tid::defineOptions()
  2. 8.9.x core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php \Drupal\taxonomy\Plugin\views\argument_default\Tid::defineOptions()
  3. 11.x core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php \Drupal\taxonomy\Plugin\views\argument_default\Tid::defineOptions()

Overrides ArgumentDefaultPluginBase::defineOptions

File

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

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.