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

Breadcrumb

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

function Section::__construct

Constructs a new Section.

Parameters

string $layout_id: The layout plugin ID.

array $layout_settings: (optional) The layout plugin settings.

\Drupal\layout_builder\SectionComponent[] $components: (optional) The components.

array[] $third_party_settings: (optional) Any third party settings.

File

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

Class

Section
Provides a domain object for layout sections.

Namespace

Drupal\layout_builder

Code

public function __construct($layout_id, array $layout_settings = [], array $components = [], array $third_party_settings = []) {
    $this->layoutId = $layout_id;
    $this->layoutSettings = $layout_settings;
    foreach ($components as $component) {
        $this->setComponent($component);
    }
    $this->thirdPartySettings = $third_party_settings;
}

API Navigation

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