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
- class \Drupal\Component\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait implements \Drupal\Component\Plugin\PluginBase
- class \Drupal\views\Plugin\views\PluginBase extends \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\views\Plugin\views\ViewsPluginInterface, \Drupal\Component\Plugin\DependentPluginInterface, \Drupal\Core\Security\TrustedCallbackInterface implements \Drupal\Core\Plugin\PluginBase
- class \Drupal\views\Plugin\views\HandlerBase extends \Drupal\views\Plugin\views\ViewsHandlerInterface implements \Drupal\views\Plugin\views\PluginBase
- class \Drupal\views\Plugin\views\argument\ArgumentPluginBase extends \Drupal\Core\Cache\CacheableDependencyInterface implements \Drupal\views\Plugin\views\HandlerBase
- class \Drupal\views\Plugin\views\argument\NumericArgument implements \Drupal\views\Plugin\views\argument\ArgumentPluginBase
- class \Drupal\views\Plugin\views\argument\EntityArgument extends \Drupal\Core\Plugin\ContainerFactoryPluginInterface implements \Drupal\views\Plugin\views\argument\NumericArgument
- class \Drupal\taxonomy\Plugin\views\argument\Taxonomy implements \Drupal\views\Plugin\views\argument\EntityArgument
- class \Drupal\taxonomy_test\Plugin\views\argument\TaxonomyViewsArgumentTest implements \Drupal\taxonomy\Plugin\views\argument\Taxonomy
- class \Drupal\taxonomy\Plugin\views\argument\Taxonomy implements \Drupal\views\Plugin\views\argument\EntityArgument
- class \Drupal\views\Plugin\views\argument\EntityArgument extends \Drupal\Core\Plugin\ContainerFactoryPluginInterface implements \Drupal\views\Plugin\views\argument\NumericArgument
- class \Drupal\views\Plugin\views\argument\NumericArgument implements \Drupal\views\Plugin\views\argument\ArgumentPluginBase
- class \Drupal\views\Plugin\views\argument\ArgumentPluginBase extends \Drupal\Core\Cache\CacheableDependencyInterface implements \Drupal\views\Plugin\views\HandlerBase
- class \Drupal\views\Plugin\views\HandlerBase extends \Drupal\views\Plugin\views\ViewsHandlerInterface implements \Drupal\views\Plugin\views\PluginBase
- class \Drupal\views\Plugin\views\PluginBase extends \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\views\Plugin\views\ViewsPluginInterface, \Drupal\Component\Plugin\DependentPluginInterface, \Drupal\Core\Security\TrustedCallbackInterface implements \Drupal\Core\Plugin\PluginBase
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait implements \Drupal\Component\Plugin\PluginBase
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.