function 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
Tests Drupal\Core\Entity\EntityTypeBundleInfo.

Namespace

Drupal\Tests\Core\Entity

Code

public static 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.