You are here

protected function TestSectionList::setSections in Drupal 10

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

File

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

Class

TestSectionList

Namespace

Drupal\Tests\layout_builder\Kernel

Code

protected function setSections(array $sections) {
  $this->sections = array_values($sections);
  return $sections;
}