function LayoutBuilderEntityViewDisplayTest::providerTestIsLayoutBuilderEnabled
Same name in other branches
- 8.9.x core/modules/layout_builder/tests/src/Kernel/LayoutBuilderEntityViewDisplayTest.php \Drupal\Tests\layout_builder\Kernel\LayoutBuilderEntityViewDisplayTest::providerTestIsLayoutBuilderEnabled()
- 10 core/modules/layout_builder/tests/src/Kernel/LayoutBuilderEntityViewDisplayTest.php \Drupal\Tests\layout_builder\Kernel\LayoutBuilderEntityViewDisplayTest::providerTestIsLayoutBuilderEnabled()
- 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 66
Class
- LayoutBuilderEntityViewDisplayTest
- @coversDefaultClass \Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay
Namespace
Drupal\Tests\layout_builder\KernelCode
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.