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

Breadcrumb

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

function Section::setComponent

Helper method to set a component.

Parameters

\Drupal\layout_builder\SectionComponent $component: The component.

Return value

$this

3 calls to Section::setComponent()
Section::appendComponent in core/modules/layout_builder/src/Section.php
Appends a component to the end of a region.
Section::insertComponent in core/modules/layout_builder/src/Section.php
Inserts a component at a specified delta.
Section::__construct in core/modules/layout_builder/src/Section.php
Constructs a new Section.

File

core/modules/layout_builder/src/Section.php, line 210

Class

Section
Provides a domain object for layout sections.

Namespace

Drupal\layout_builder

Code

protected function setComponent(SectionComponent $component) {
    $this->components[$component->getUuid()] = $component;
    return $this;
}

API Navigation

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