You are here

public static function CshsTaxonomyIndex::create in Client-side Hierarchical Select 8

Same name and namespace in other branches
  1. 8.3 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 25

Class

CshsTaxonomyIndex
Common implementation for "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;
}