protected function LayoutBuilderDisplayVariant::setSections in Page Manager 8.4
Stores the information for all sections.
Implementations of this method are expected to call array_values() to rekey the list of sections.
Parameters
\Drupal\layout_builder\Section[] $sections: An array of section objects.
Return value
$this
Overrides SectionStorageTrait::setSections
File
- src/
Plugin/ DisplayVariant/ LayoutBuilderDisplayVariant.php, line 79
Class
- LayoutBuilderDisplayVariant
- Provides a Layout Builder variant.
Namespace
Drupal\page_manager\Plugin\DisplayVariantCode
protected function setSections(array $sections) {
$this->configuration['sections'] = array_values($sections);
}