public function TestDerivativeDiscoveryWithObject::getDerivativeDefinition 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::getDerivativeDefinition()
Parameters
string $derivative_id:
array $base_plugin_definition:
Return value
array
Overrides DeriverInterface::getDerivativeDefinition
File
- core/
tests/ Drupal/ Tests/ Core/ Plugin/ Discovery/ TestDerivativeDiscoveryWithObject.php, line 23 - Contains \Drupal\Tests\Core\Plugin\Discovery\TestDerivativeDiscoveryWithObject.
Class
- TestDerivativeDiscoveryWithObject
- Defines test derivative discovery using an object..
Namespace
Drupal\Tests\Core\Plugin\DiscoveryCode
public function getDerivativeDefinition($derivative_id, $base_plugin_definition) {
$definitions = $this
->getDerivativeDefinitions($base_plugin_definition);
return $definitions[$derivative_id];
}