function TestSectionList::setSections

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

Overrides SectionStorageTrait::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;
}

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