You are here

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

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.3 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()

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

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

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['break_phrase'] = array(
    'default' => FALSE,
  );
  $options['use_taxonomy_term_path'] = array(
    'default' => FALSE,
  );
  return $options;
}