function SectionListTrait::appendSection

Same name and namespace in other branches
  1. 11.x core/modules/layout_builder/src/SectionListTrait.php \Drupal\layout_builder\SectionListTrait::appendSection()
  2. 10 core/modules/layout_builder/src/SectionListTrait.php \Drupal\layout_builder\SectionListTrait::appendSection()

File

core/modules/layout_builder/src/SectionListTrait.php, line 68

Class

SectionListTrait
Provides a trait for maintaining a list of sections.

Namespace

Drupal\layout_builder

Code

public function appendSection(Section $section) {
  $delta = $this->count();
  $this->setSection($delta, $section);
  return $this;
}

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