You are here

public function CshsTaxonomyIndex::defineOptions in Client-side Hierarchical Select 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/views/filter/CshsTaxonomyIndex.php \Drupal\cshs\Plugin\views\filter\CshsTaxonomyIndex::defineOptions()
  2. 8 src/Plugin/views/filter/CshsTaxonomyIndex.php \Drupal\cshs\Plugin\views\filter\CshsTaxonomyIndex::defineOptions()

File

src/Plugin/views/filter/CshsTaxonomyIndex.php, line 45

Class

CshsTaxonomyIndex
Common implementation for "CshsTaxonomyIndex" plugin.

Namespace

Drupal\cshs\Plugin\views\filter

Code

public function defineOptions() : array {
  $options = parent::defineOptions();
  foreach (static::defaultSettings() + [
    'type' => CshsElement::ID,
  ] as $option => $value) {
    $options[$option] = [
      'default' => $value,
    ];
  }
  return $options;
}