You are here

protected function ShsChosenTaxonomyIndexTid::defaultChosenSettings in Simple hierarchical select 2.0.x

Same name and namespace in other branches
  1. 8 modules/shs_chosen/src/Plugin/views/filter/ShsChosenTaxonomyIndexTid.php \Drupal\shs_chosen\Plugin\views\filter\ShsChosenTaxonomyIndexTid::defaultChosenSettings()

Get the default settings for chosen.

Return value

array List of settings.

3 calls to ShsChosenTaxonomyIndexTid::defaultChosenSettings()
ShsChosenTaxonomyIndexTid::buildExposeForm in modules/shs_chosen/src/Plugin/views/filter/ShsChosenTaxonomyIndexTid.php
Options form subform for exposed filter options.
ShsChosenTaxonomyIndexTid::defaultExposeOptions in modules/shs_chosen/src/Plugin/views/filter/ShsChosenTaxonomyIndexTid.php
Provide default options for exposed filters.
ShsChosenTaxonomyIndexTid::valueForm in modules/shs_chosen/src/Plugin/views/filter/ShsChosenTaxonomyIndexTid.php
Options form subform for setting options.

File

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

Class

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

Namespace

Drupal\shs_chosen\Plugin\views\filter

Code

protected function defaultChosenSettings() {
  return [
    'disable_search' => FALSE,
    'search_contains' => FALSE,
    'placeholder_text_multiple' => $this
      ->t('Choose some options'),
    'placeholder_text_single' => $this
      ->t('Choose an option'),
    'no_results_text' => $this
      ->t('No results match'),
  ];
}