function TaxonomyViewsArgumentTest::create

Same name in other branches
  1. 10 core/modules/taxonomy/tests/modules/taxonomy_test/src/Plugin/views/argument/TaxonomyViewsArgumentTest.php \Drupal\taxonomy_test\Plugin\views\argument\TaxonomyViewsArgumentTest::create()

File

core/modules/taxonomy/tests/modules/taxonomy_test/src/Plugin/views/argument/TaxonomyViewsArgumentTest.php, line 31

Class

TaxonomyViewsArgumentTest
Test argument handler for testing deprecation in IndexTidDepth plugin.

Namespace

Drupal\taxonomy_test\Plugin\views\argument

Code

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

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