public static function CshsTaxonomyIndex::create in Client-side Hierarchical Select 8
Same name and namespace in other branches
- 8.3 src/Plugin/views/filter/CshsTaxonomyIndex.php \Drupal\cshs\Plugin\views\filter\CshsTaxonomyIndex::create()
- 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\filterCode
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;
}