protected function SectionListTraitTest::getSectionList in Drupal 9
Same name and namespace in other branches
- 10 core/modules/layout_builder/tests/src/Kernel/SectionListTraitTest.php \Drupal\Tests\layout_builder\Kernel\SectionListTraitTest::getSectionList()
Sets up the section list.
Parameters
array $section_data: An array of section data.
Return value
\Drupal\layout_builder\SectionListInterface The section list.
Overrides SectionListTestBase::getSectionList
File
- core/
modules/ layout_builder/ tests/ src/ Kernel/ SectionListTraitTest.php, line 19
Class
- SectionListTraitTest
- @coversDefaultClass \Drupal\layout_builder\SectionListTrait
Namespace
Drupal\Tests\layout_builder\KernelCode
protected function getSectionList(array $section_data) {
return new TestSectionList($section_data);
}