public function LayoutBuilderEntityViewDisplayTest::providerTestIsLayoutBuilderEnabled in Drupal 9
Same name and namespace in other branches
- 8 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;
}