function LayoutEntityHelperTraitTest::providerTestGetSectionStorageForEntity

Same name in other branches
  1. 9 core/modules/layout_builder/tests/src/Kernel/LayoutEntityHelperTraitTest.php \Drupal\Tests\layout_builder\Kernel\LayoutEntityHelperTraitTest::providerTestGetSectionStorageForEntity()
  2. 8.9.x core/modules/layout_builder/tests/src/Kernel/LayoutEntityHelperTraitTest.php \Drupal\Tests\layout_builder\Kernel\LayoutEntityHelperTraitTest::providerTestGetSectionStorageForEntity()
  3. 11.x core/modules/layout_builder/tests/src/Kernel/LayoutEntityHelperTraitTest.php \Drupal\Tests\layout_builder\Kernel\LayoutEntityHelperTraitTest::providerTestGetSectionStorageForEntity()

Data provider for testGetSectionStorageForEntity().

File

core/modules/layout_builder/tests/src/Kernel/LayoutEntityHelperTraitTest.php, line 54

Class

LayoutEntityHelperTraitTest
@coversDefaultClass \Drupal\layout_builder\LayoutEntityHelperTrait

Namespace

Drupal\Tests\layout_builder\Kernel

Code

public static function providerTestGetSectionStorageForEntity() {
    $data = [];
    $data['entity_view_display'] = [
        'entity_view_display',
        [
            'targetEntityType' => 'entity_test',
            'bundle' => 'entity_test',
            'mode' => 'default',
            'status' => TRUE,
            'third_party_settings' => [
                'layout_builder' => [
                    'enabled' => TRUE,
                ],
            ],
        ],
        [
            'display',
            'view_mode',
        ],
    ];
    $data['fieldable entity'] = [
        'entity_test',
        [],
        [
            'entity',
            'display',
            'view_mode',
        ],
    ];
    return $data;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.