function TestDerivativeDiscoveryWithObject::getDerivativeDefinition
Gets the definition of a derivative plugin.
Parameters
string $derivative_id: The ID for the derivative.
array $base_plugin_definition: An associative array defining the base plugin.
Return value
array
Overrides DeriverInterface::getDerivativeDefinition
File
- 
              core/
tests/ Drupal/ Tests/ Core/ Plugin/ Discovery/ TestDerivativeDiscoveryWithObject.php, line 23  
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];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.