function IndexTidDepth::defineOptions

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

Overrides ArgumentPluginBase::defineOptions

File

core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php, line 46

Class

IndexTidDepth
Argument handler for taxonomy terms with depth.

Namespace

Drupal\taxonomy\Plugin\views\argument

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    $options['depth'] = [
        'default' => 0,
    ];
    $options['break_phrase'] = [
        'default' => FALSE,
    ];
    $options['use_taxonomy_term_path'] = [
        'default' => FALSE,
    ];
    return $options;
}

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