function TestDerivativeDiscovery::getDerivativeDefinitions
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Core/Plugin/Discovery/TestDerivativeDiscovery.php \Drupal\Tests\Core\Plugin\Discovery\TestDerivativeDiscovery::getDerivativeDefinitions()
- 10 core/tests/Drupal/Tests/Core/Plugin/Discovery/TestDerivativeDiscovery.php \Drupal\Tests\Core\Plugin\Discovery\TestDerivativeDiscovery::getDerivativeDefinitions()
- 11.x core/tests/Drupal/Tests/Core/Plugin/Discovery/TestDerivativeDiscovery.php \Drupal\Tests\Core\Plugin\Discovery\TestDerivativeDiscovery::getDerivativeDefinitions()
Overrides DeriverInterface::getDerivativeDefinitions
1 call to TestDerivativeDiscovery::getDerivativeDefinitions()
- TestDerivativeDiscovery::getDerivativeDefinition in core/
tests/ Drupal/ Tests/ Core/ Plugin/ Discovery/ TestDerivativeDiscovery.php - Gets the definition of a derivative plugin.
File
-
core/
tests/ Drupal/ Tests/ Core/ Plugin/ Discovery/ TestDerivativeDiscovery.php, line 23
Class
- TestDerivativeDiscovery
- Defines test derivative discovery.
Namespace
Drupal\Tests\Core\Plugin\DiscoveryCode
public function getDerivativeDefinitions($base_plugin_definition) {
$plugins = [];
for ($i = 0; $i < 2; $i++) {
$plugins['test_discovery_' . $i] = $base_plugin_definition;
}
return $plugins;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.