You are here

protected function TaxonomyIndexTidDepth::defineOptions in Drupal 10

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

Overrides TaxonomyIndexTid::defineOptions

File

core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTidDepth.php, line 27

Class

TaxonomyIndexTidDepth
Filter handler for taxonomy terms with depth.

Namespace

Drupal\taxonomy\Plugin\views\filter

Code

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