public function SectionTest::providerTestGetLayout in Drupal 9
Provides test data for ::testGetLayout().
File
- core/
modules/ layout_builder/ tests/ src/ Unit/ SectionTest.php, line 398
Class
- SectionTest
- @coversDefaultClass \Drupal\layout_builder\Section @group layout_builder
Namespace
Drupal\Tests\layout_builder\UnitCode
public function providerTestGetLayout() {
$data = [];
$data['contexts'] = [
[
'foo' => 'bar',
],
TRUE,
];
$data['no contexts'] = [
[],
FALSE,
];
return $data;
}