public function DiscoveryTraitTest::providerDoGetDefinition in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/Plugin/Discovery/DiscoveryTraitTest.php \Drupal\Tests\Component\Plugin\Discovery\DiscoveryTraitTest::providerDoGetDefinition()
- 9 core/tests/Drupal/Tests/Component/Plugin/Discovery/DiscoveryTraitTest.php \Drupal\Tests\Component\Plugin\Discovery\DiscoveryTraitTest::providerDoGetDefinition()
Data provider for testDoGetDefinition().
Return value
array
- Expected plugin definition.
- Plugin definition array, to pass to doGetDefinition().
- Plugin ID to get, passed to doGetDefinition().
File
- core/
tests/ Drupal/ Tests/ Component/ Plugin/ Discovery/ DiscoveryTraitTest.php, line 22
Class
- DiscoveryTraitTest
- @group Plugin @coversDefaultClass \Drupal\Component\Plugin\Discovery\DiscoveryTrait
Namespace
Drupal\Tests\Component\Plugin\DiscoveryCode
public function providerDoGetDefinition() {
return [
[
'definition',
[
'plugin_name' => 'definition',
],
'plugin_name',
],
[
NULL,
[
'plugin_name' => 'definition',
],
'bad_plugin_name',
],
];
}