function SectionComponent::setRegion
Same name in other branches
- 9 core/modules/layout_builder/src/SectionComponent.php \Drupal\layout_builder\SectionComponent::setRegion()
- 8.9.x core/modules/layout_builder/src/SectionComponent.php \Drupal\layout_builder\SectionComponent::setRegion()
- 11.x 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_builderCode
public function setRegion($region) {
$this->region = $region;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.