function Section::getComponents
Same name in other branches
- 9 core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::getComponents()
- 10 core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::getComponents()
- 11.x core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::getComponents()
Returns the components of the section.
Return value
\Drupal\layout_builder\SectionComponent[] The components.
3 calls to Section::getComponents()
- Section::getComponentsByRegion in core/
modules/ layout_builder/ src/ Section.php - Gets the components for a specific region.
- Section::toArray in core/
modules/ layout_builder/ src/ Section.php - Returns an array representation of the section.
- Section::toRenderArray in core/
modules/ layout_builder/ src/ Section.php - Returns the renderable array for this section.
File
-
core/
modules/ layout_builder/ src/ Section.php, line 159
Class
- Section
- Provides a domain object for layout sections.
Namespace
Drupal\layout_builderCode
public function getComponents() {
return $this->components;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.