function EntityTypeBundleInfoTest::providerTestGetBundleLabels
Provides test data for testGetBundleLabels().
Return value
array Test data.
File
-
core/
tests/ Drupal/ Tests/ Core/ Entity/ EntityTypeBundleInfoTest.php, line 368
Class
Namespace
Drupal\Tests\Core\EntityCode
public static function providerTestGetBundleLabels() : array {
return [
[
'apple',
[
'apple' => 'Apple',
],
],
[
'banana',
[
'banana' => 'Banana',
],
],
[
'pear',
[],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.