function LayoutBuilderEntityViewDisplayTest::providerTestIsLayoutBuilderEnabled

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

Provides test data for ::testIsLayoutBuilderEnabled().

File

core/modules/layout_builder/tests/src/Kernel/LayoutBuilderEntityViewDisplayTest.php, line 86

Class

LayoutBuilderEntityViewDisplayTest
@coversDefaultClass \Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay

Namespace

Drupal\Tests\layout_builder\Kernel

Code

public function providerTestIsLayoutBuilderEnabled() {
    $data = [];
    $data['default enabled'] = [
        TRUE,
        'default',
        TRUE,
    ];
    $data['default disabled'] = [
        FALSE,
        'default',
        FALSE,
    ];
    $data['full enabled'] = [
        TRUE,
        'full',
        TRUE,
    ];
    $data['full disabled'] = [
        FALSE,
        'full',
        FALSE,
    ];
    $data['_custom enabled'] = [
        FALSE,
        '_custom',
        TRUE,
    ];
    $data['_custom disabled'] = [
        FALSE,
        '_custom',
        FALSE,
    ];
    return $data;
}

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