You are here

public function TestSectionList::getSections in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/tests/src/Kernel/SectionListTraitTest.php \Drupal\Tests\layout_builder\Kernel\TestSectionList::getSections()

Gets the layout sections.

Return value

\Drupal\layout_builder\Section[] A sequentially and numerically keyed array of section objects.

Overrides SectionListInterface::getSections

File

core/modules/layout_builder/tests/src/Kernel/SectionListTraitTest.php, line 69

Class

TestSectionList

Namespace

Drupal\Tests\layout_builder\Kernel

Code

public function getSections() {
  return $this->sections;
}