You are here

cshs.views.inc in Client-side Hierarchical Select 8

Same filename and directory in other branches
  1. 8.3 cshs.views.inc
  2. 8.2 cshs.views.inc

Views integration.

File

cshs.views.inc
View source
<?php

/**
 * @file
 * Views integration.
 */
use Drupal\cshs\Plugin\views\filter\CshsTaxonomyIndexTid;
use Drupal\cshs\Plugin\views\filter\CshsTaxonomyIndexTidDepth;

/**
 * Implements hook_views_plugins_filter_alter().
 *
 * @internal
 */
function cshs_views_plugins_filter_alter(array &$plugins) : void {
  $plugins[CshsTaxonomyIndexTid::ID]['class'] = CshsTaxonomyIndexTid::class;
  $plugins[CshsTaxonomyIndexTidDepth::ID]['class'] = CshsTaxonomyIndexTidDepth::class;
}