public function TestDerivativeDiscoveryWithObject::getDerivativeDefinitions in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Plugin/Discovery/TestDerivativeDiscoveryWithObject.php \Drupal\Tests\Core\Plugin\Discovery\TestDerivativeDiscoveryWithObject::getDerivativeDefinitions()
Parameters
array $base_plugin_definition:
Return value
array
Overrides DeriverInterface::getDerivativeDefinitions
1 call to TestDerivativeDiscoveryWithObject::getDerivativeDefinitions()
- TestDerivativeDiscoveryWithObject::getDerivativeDefinition in core/
tests/ Drupal/ Tests/ Core/ Plugin/ Discovery/ TestDerivativeDiscoveryWithObject.php
File
- core/
tests/ Drupal/ Tests/ Core/ Plugin/ Discovery/ TestDerivativeDiscoveryWithObject.php, line 33 - Contains \Drupal\Tests\Core\Plugin\Discovery\TestDerivativeDiscoveryWithObject.
Class
- TestDerivativeDiscoveryWithObject
- Defines test derivative discovery using an object..
Namespace
Drupal\Tests\Core\Plugin\DiscoveryCode
public function getDerivativeDefinitions($base_plugin_definition) {
$plugins = array();
for ($i = 0; $i < 2; $i++) {
$plugins['test_discovery_' . $i] = $base_plugin_definition;
}
return $plugins;
}