You are here

public function SectionComponent::setRegion in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/SectionComponent.php \Drupal\layout_builder\SectionComponent::setRegion()
  2. 9 core/modules/layout_builder/src/SectionComponent.php \Drupal\layout_builder\SectionComponent::setRegion()

Sets the region for the component.

Parameters

string $region: The region.

Return value

$this

File

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

Class

SectionComponent
Provides a value object for a section component.

Namespace

Drupal\layout_builder

Code

public function setRegion($region) {
  $this->region = $region;
  return $this;
}