Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Section.php

function Section::getComponents

Returns the components of the section.

Return value

\Drupal\layout_builder\SectionComponent[] An array of components, keyed by the component UUID.

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 178

Class

Section
Provides a domain object for layout sections.

Namespace

Drupal\layout_builder

Code

public function getComponents() {
    return $this->components;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal