function TestSectionList::setSections

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

Overrides SectionListTrait::setSections

File

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

Class

TestSectionList

Namespace

Drupal\Tests\layout_builder\Kernel

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.