You are here

protected function IndexNameDepth::defineOptions in Views Taxonomy Term Name Depth 8.3

Same name and namespace in other branches
  1. 8.6 src/Plugin/views/argument/IndexNameDepth.php \Drupal\views_taxonomy_term_name_depth\Plugin\views\argument\IndexNameDepth::defineOptions()
  2. 8 src/Plugin/views/argument/IndexNameDepth.php \Drupal\views_taxonomy_term_name_depth\Plugin\views\argument\IndexNameDepth::defineOptions()
  3. 7.x src/Plugin/views/argument/IndexNameDepth.php \Drupal\views_taxonomy_term_name_depth\Plugin\views\argument\IndexNameDepth::defineOptions()

@inheritdoc

Overrides ArgumentPluginBase::defineOptions

File

src/Plugin/views/argument/IndexNameDepth.php, line 58

Class

IndexNameDepth
Argument handler for taxonomy terms with depth.

Namespace

Drupal\views_taxonomy_term_name_depth\Plugin\views\argument

Code

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