You are here

public static function VocabularyVid::create in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/taxonomy/src/Plugin/views/argument/VocabularyVid.php \Drupal\taxonomy\Plugin\views\argument\VocabularyVid::create()
  2. 9 core/modules/taxonomy/src/Plugin/views/argument/VocabularyVid.php \Drupal\taxonomy\Plugin\views\argument\VocabularyVid::create()

File

core/modules/taxonomy/src/Plugin/views/argument/VocabularyVid.php, line 45

Class

VocabularyVid
Argument handler to accept a vocabulary id.

Namespace

Drupal\taxonomy\Plugin\views\argument

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('entity_type.manager')
    ->getStorage('taxonomy_vocabulary'));
}