You are here

public function PluginBaseTest::providerTestGetDerivativeId in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php \Drupal\Tests\Component\Plugin\PluginBaseTest::providerTestGetDerivativeId()
  2. 9 core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php \Drupal\Tests\Component\Plugin\PluginBaseTest::providerTestGetDerivativeId()

Returns test data for testGetDerivativeId().

Return value

array

File

core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php, line 86

Class

PluginBaseTest
@coversDefaultClass \Drupal\Component\Plugin\PluginBase @group Plugin

Namespace

Drupal\Tests\Component\Plugin

Code

public function providerTestGetDerivativeId() {
  return [
    [
      'base_id',
      NULL,
    ],
    [
      'base_id:derivative',
      'derivative',
    ],
  ];
}