You are here

public static function CshsTaxonomyIndex::getConfigSchema in Client-side Hierarchical Select 8.3

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

Returns the views filter configuration schema.

Return value

array The config schema, provided in addition to the parent implementation.

See also

taxonomy.views.schema.yml

\cshs_config_schema_info_alter()

File

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

Class

CshsTaxonomyIndex
The common implementation for the `CshsTaxonomyIndex` plugin.

Namespace

Drupal\cshs\Plugin\views\filter

Code

public static function getConfigSchema() : array {
  return [
    'save_lineage' => [
      'type' => 'boolean',
      'label' => 'Save lineage',
    ],
    'force_deepest' => [
      'type' => 'boolean',
      'label' => 'Force selection of deepest level',
    ],
    'parent' => [
      'type' => 'integer',
      'label' => 'Parent',
    ],
    'level_labels' => [
      'type' => 'string',
      'label' => 'Labels per hierarchy-level',
    ],
    'hierarchy_depth' => [
      'type' => 'integer',
      'label' => 'Hierarchy depth',
    ],
    'required_depth' => [
      'type' => 'integer',
      'label' => 'Required depth',
    ],
    'none_label' => [
      'type' => 'string',
      'label' => 'The "no selection" label',
    ],
  ];
}