function EntityTypeBundleInfoTest::providerTestGetBundleInfo
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php \Drupal\Tests\Core\Entity\EntityTypeBundleInfoTest::providerTestGetBundleInfo()
- 10 core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php \Drupal\Tests\Core\Entity\EntityTypeBundleInfoTest::providerTestGetBundleInfo()
- 11.x core/tests/Drupal/Tests/Core/Entity/EntityTypeBundleInfoTest.php \Drupal\Tests\Core\Entity\EntityTypeBundleInfoTest::providerTestGetBundleInfo()
Provides test data for testGetBundleInfo().
Return value
array Test data.
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityTypeBundleInfoTest.php, line 196
Class
- EntityTypeBundleInfoTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21Entity%21EntityTypeBundleInfo.php/class/EntityTypeBundleInfo/8.9.x" title="Provides discovery and retrieval of entity type bundles." class="local">\Drupal\Core\Entity\EntityTypeBundleInfo</a> @group Entity
Namespace
Drupal\Tests\Core\EntityCode
public function providerTestGetBundleInfo() {
return [
[
'apple',
[
'apple' => [
'label' => 'Apple',
],
],
],
[
'banana',
[
'banana' => [
'label' => 'Banana',
],
],
],
[
'pear',
[],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.