You are here

protected function IndexTidDepth::defineOptions in Drupal 8

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

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides ArgumentPluginBase::defineOptions

File

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

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