class TaxonomyViewsArgumentTest

Test argument handler for testing deprecation in Taxonomy argument plugin.

Intentionally setup our properties and constructor as Drupal 10.2.x and earlier used in the Taxonomy argument handler.

Plugin annotation

@ViewsArgument("taxonomy_views_argument_test");

Hierarchy

Expanded class hierarchy of TaxonomyViewsArgumentTest

Related topics

1 file declares its use of TaxonomyViewsArgumentTest
ViewsArgumentDeprecationTest.php in core/modules/taxonomy/tests/src/Kernel/Views/ViewsArgumentDeprecationTest.php

File

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

Namespace

Drupal\taxonomy_test\Plugin\views\argument
View source
class TaxonomyViewsArgumentTest extends Taxonomy {
    public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $termStorage) {
        parent::__construct($configuration, $plugin_id, $plugin_definition, $termStorage);
    }
    
    /**
     * {@inheritdoc}
     */
    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_term'));
    }

}

Members

Title Sort descending Modifiers Object type Summary
TaxonomyViewsArgumentTest::create public static function
TaxonomyViewsArgumentTest::__construct public function

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