You are here

public function TestDerivativeDiscovery::getDerivativeDefinition in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Plugin/Discovery/TestDerivativeDiscovery.php \Drupal\Tests\Core\Plugin\Discovery\TestDerivativeDiscovery::getDerivativeDefinition()
  2. 9 core/tests/Drupal/Tests/Core/Plugin/Discovery/TestDerivativeDiscovery.php \Drupal\Tests\Core\Plugin\Discovery\TestDerivativeDiscovery::getDerivativeDefinition()

File

core/tests/Drupal/Tests/Core/Plugin/Discovery/TestDerivativeDiscovery.php, line 15

Class

TestDerivativeDiscovery
Defines test derivative discovery.

Namespace

Drupal\Tests\Core\Plugin\Discovery

Code

public function getDerivativeDefinition($derivative_id, $base_plugin_definition) {
  $definitions = $this
    ->getDerivativeDefinitions($base_plugin_definition);
  return $definitions[$derivative_id];
}