You are here

protected function ShsChosenTaxonomyIndexTidDepth::defineOptions in Simple hierarchical select 8

Same name and namespace in other branches
  1. 2.0.x modules/shs_chosen/src/Plugin/views/filter/ShsChosenTaxonomyIndexTidDepth.php \Drupal\shs_chosen\Plugin\views\filter\ShsChosenTaxonomyIndexTidDepth::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 ShsChosenTaxonomyIndexTid::defineOptions

File

modules/shs_chosen/src/Plugin/views/filter/ShsChosenTaxonomyIndexTidDepth.php, line 67

Class

ShsChosenTaxonomyIndexTidDepth
Filter handler for taxonomy terms with depth.

Namespace

Drupal\shs_chosen\Plugin\views\filter

Code

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