You are here

function cshs_config_schema_info_alter in Client-side Hierarchical Select 8

Same name and namespace in other branches
  1. 8.3 cshs.module \cshs_config_schema_info_alter()
  2. 8.2 cshs.module \cshs_config_schema_info_alter()

Implements hook_config_schema_info_alter().

@internal

File

./cshs.module, line 61
Client-side Hierarchical Select.

Code

function cshs_config_schema_info_alter(array &$definitions) : void {

  /* @noinspection AdditionOperationOnArraysInspection */
  $parent = $definitions['views.filter.' . CshsTaxonomyIndexTid::ID]['mapping'] += CshsTaxonomyIndexTid::getConfigSchema();

  // The `depth` plugin extends the default one and
  // the `taxonomy.views.schema.yml` does not define
  // the configuration the parent provides.

  /* @noinspection AdditionOperationOnArraysInspection */
  $definitions['views.filter.' . CshsTaxonomyIndexTidDepth::ID]['mapping'] += $parent + CshsTaxonomyIndexTidDepth::getConfigSchema();
}