class TestContainerDerivativeDiscovery
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Plugin/Discovery/TestContainerDerivativeDiscovery.php \Drupal\Tests\Core\Plugin\Discovery\TestContainerDerivativeDiscovery
- 8.9.x core/tests/Drupal/Tests/Core/Plugin/Discovery/TestContainerDerivativeDiscovery.php \Drupal\Tests\Core\Plugin\Discovery\TestContainerDerivativeDiscovery
- 11.x core/tests/Drupal/Tests/Core/Plugin/Discovery/TestContainerDerivativeDiscovery.php \Drupal\Tests\Core\Plugin\Discovery\TestContainerDerivativeDiscovery
Defines container test derivative discovery.
Hierarchy
- class \Drupal\Tests\Core\Plugin\Discovery\TestDerivativeDiscovery implements \Drupal\Component\Plugin\Derivative\DeriverInterface
- class \Drupal\Tests\Core\Plugin\Discovery\TestContainerDerivativeDiscovery extends \Drupal\Tests\Core\Plugin\Discovery\TestDerivativeDiscovery implements \Drupal\Core\Plugin\Discovery\ContainerDeriverInterface
Expanded class hierarchy of TestContainerDerivativeDiscovery
File
-
core/
tests/ Drupal/ Tests/ Core/ Plugin/ Discovery/ TestContainerDerivativeDiscovery.php, line 14
Namespace
Drupal\Tests\Core\Plugin\DiscoveryView source
class TestContainerDerivativeDiscovery extends TestDerivativeDiscovery implements ContainerDeriverInterface {
/**
* Constructs a TestContainerDerivativeDiscovery object.
*
* @var \Symfony\Contracts\EventDispatcher\EventDispatcherInterface $example_service
* Some service.
*/
public function __construct(EventDispatcherInterface $example_service) {
}
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container, $base_plugin_id) {
return new static($container->get('example_service'));
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
TestContainerDerivativeDiscovery::create | public static | function | Overrides ContainerDeriverInterface::create | |
TestContainerDerivativeDiscovery::__construct | public | function | Constructs a TestContainerDerivativeDiscovery object. | |
TestDerivativeDiscovery::getDerivativeDefinition | public | function | Overrides DeriverInterface::getDerivativeDefinition | |
TestDerivativeDiscovery::getDerivativeDefinitions | public | function | Overrides DeriverInterface::getDerivativeDefinitions |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.