You are here

public static function CshsTaxonomyIndex::create 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::create()
  2. 8.2 src/Plugin/views/filter/CshsTaxonomyIndex.php \Drupal\cshs\Plugin\views\filter\CshsTaxonomyIndex::create()

File

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

Class

CshsTaxonomyIndex
The common implementation for the `CshsTaxonomyIndex` plugin.

Namespace

Drupal\cshs\Plugin\views\filter

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) : self {
  $instance = parent::create($container, $configuration, $plugin_id, $plugin_definition);
  \assert($instance instanceof self);
  $instance->entityRepository = $container
    ->get('entity.repository');
  return $instance;
}