function SectionComponent::__construct

Same name in other branches
  1. 9 core/modules/layout_builder/src/SectionComponent.php \Drupal\layout_builder\SectionComponent::__construct()
  2. 8.9.x core/modules/layout_builder/src/SectionComponent.php \Drupal\layout_builder\SectionComponent::__construct()
  3. 10 core/modules/layout_builder/src/SectionComponent.php \Drupal\layout_builder\SectionComponent::__construct()

Constructs a new SectionComponent.

Parameters

string $uuid: The UUID.

string $region: The region.

mixed[] $configuration: The plugin configuration.

mixed[] $additional: An additional values.

File

core/modules/layout_builder/src/SectionComponent.php, line 70

Class

SectionComponent
Provides a value object for a section component.

Namespace

Drupal\layout_builder

Code

public function __construct($uuid, $region, array $configuration = [], array $additional = []) {
    $this->uuid = $uuid;
    $this->region = $region;
    $this->configuration = $configuration;
    $this->additional = $additional;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.