function LayoutEntityHelperTraitTest::providerTestGetSectionStorageForEntity

Same name and namespace 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 <a href="/api/drupal/core%21modules%21layout_builder%21src%21LayoutEntityHelperTrait.php/trait/LayoutEntityHelperTrait/10" title="Methods to help with entities using the layout builder." class="local">\Drupal\layout_builder\LayoutEntityHelperTrait</a>

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.