function VocabularyVid::create

Same name in other branches
  1. 8.9.x core/modules/taxonomy/src/Plugin/views/argument/VocabularyVid.php \Drupal\taxonomy\Plugin\views\argument\VocabularyVid::create()

Overrides PluginBase::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'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.