You are here

protected function ShsChosenTaxonomyIndexTid::defineOptions in Simple hierarchical select 8

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

1 call to ShsChosenTaxonomyIndexTid::defineOptions()
ShsChosenTaxonomyIndexTidDepth::defineOptions in modules/shs_chosen/src/Plugin/views/filter/ShsChosenTaxonomyIndexTidDepth.php
Information about options for all kinds of purposes will be held here.
1 method overrides ShsChosenTaxonomyIndexTid::defineOptions()
ShsChosenTaxonomyIndexTidDepth::defineOptions in modules/shs_chosen/src/Plugin/views/filter/ShsChosenTaxonomyIndexTidDepth.php
Information about options for all kinds of purposes will be held here.

File

modules/shs_chosen/src/Plugin/views/filter/ShsChosenTaxonomyIndexTid.php, line 30

Class

ShsChosenTaxonomyIndexTid
Filter by term id using "Simple hierarchical select: chosen" widgets.

Namespace

Drupal\shs_chosen\Plugin\views\filter

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['expose']['contains']['chosen_override'] = [
    'default' => FALSE,
  ];
  $options['expose']['contains']['disable_search'] = [
    'default' => FALSE,
  ];
  $options['expose']['contains']['search_contains'] = [
    'default' => FALSE,
  ];
  $options['expose']['contains']['placeholder_text_multiple'] = [
    'default' => '',
  ];
  $options['expose']['contains']['placeholder_text_single'] = [
    'default' => '',
  ];
  $options['expose']['contains']['no_results_text'] = [
    'default' => '',
  ];
  return $options;
}