class TaxonomyViewsArgumentTest
Same name in other branches
- 11.x core/modules/taxonomy/tests/modules/taxonomy_test/src/Plugin/views/argument/TaxonomyViewsArgumentTest.php \Drupal\taxonomy_test\Plugin\views\argument\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
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
- class \Drupal\views\Plugin\views\PluginBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\views\Plugin\views\ViewsPluginInterface, \Drupal\Component\Plugin\DependentPluginInterface, \Drupal\Core\Security\TrustedCallbackInterface
- class \Drupal\views\Plugin\views\HandlerBase extends \Drupal\views\Plugin\views\PluginBase implements \Drupal\views\Plugin\views\ViewsHandlerInterface
- class \Drupal\views\Plugin\views\argument\ArgumentPluginBase extends \Drupal\views\Plugin\views\HandlerBase implements \Drupal\Core\Cache\CacheableDependencyInterface
- class \Drupal\views\Plugin\views\argument\NumericArgument extends \Drupal\views\Plugin\views\argument\ArgumentPluginBase
- class \Drupal\views\Plugin\views\argument\EntityArgument extends \Drupal\views\Plugin\views\argument\NumericArgument implements \Drupal\Core\Plugin\ContainerFactoryPluginInterface
- class \Drupal\taxonomy\Plugin\views\argument\Taxonomy extends \Drupal\views\Plugin\views\argument\EntityArgument
- class \Drupal\taxonomy_test\Plugin\views\argument\TaxonomyViewsArgumentTest extends \Drupal\taxonomy\Plugin\views\argument\Taxonomy
- class \Drupal\taxonomy\Plugin\views\argument\Taxonomy extends \Drupal\views\Plugin\views\argument\EntityArgument
- class \Drupal\views\Plugin\views\argument\EntityArgument extends \Drupal\views\Plugin\views\argument\NumericArgument implements \Drupal\Core\Plugin\ContainerFactoryPluginInterface
- class \Drupal\views\Plugin\views\argument\NumericArgument extends \Drupal\views\Plugin\views\argument\ArgumentPluginBase
- class \Drupal\views\Plugin\views\argument\ArgumentPluginBase extends \Drupal\views\Plugin\views\HandlerBase implements \Drupal\Core\Cache\CacheableDependencyInterface
- class \Drupal\views\Plugin\views\HandlerBase extends \Drupal\views\Plugin\views\PluginBase implements \Drupal\views\Plugin\views\ViewsHandlerInterface
- class \Drupal\views\Plugin\views\PluginBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\views\Plugin\views\ViewsPluginInterface, \Drupal\Component\Plugin\DependentPluginInterface, \Drupal\Core\Security\TrustedCallbackInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
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\argumentView 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.