You are here

trait SectionStorageTrait in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/SectionStorage/SectionStorageTrait.php \Drupal\layout_builder\SectionStorage\SectionStorageTrait

Provides a trait for storing sections on an object.

Hierarchy

Deprecated

in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\layout_builder\SectionListTrait instead.

See also

https://www.drupal.org/node/3091432

File

core/modules/layout_builder/src/SectionStorage/SectionStorageTrait.php, line 17

Namespace

Drupal\layout_builder\SectionStorage
View source
trait SectionStorageTrait {
  use SectionListTrait;

}

Members

Namesort descending Modifiers Type Description Overrides
SectionListTrait::addBlankSection protected function Adds a blank section to the list.
SectionListTrait::appendSection public function
SectionListTrait::count public function
SectionListTrait::getSection public function
SectionListTrait::hasBlankSection protected function Indicates if this section list contains a blank section.
SectionListTrait::hasSection protected function Indicates if there is a section at the specified delta.
SectionListTrait::insertSection public function
SectionListTrait::removeAllSections public function
SectionListTrait::removeSection public function
SectionListTrait::setSection protected function Sets the section for the given delta on the display.
SectionListTrait::setSections abstract protected function Stores the information for all sections. 4
SectionListTrait::__clone public function Magic method: Implements a deep clone.