function Section::getDefaultRegion
Same name in other branches
- 9 core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::getDefaultRegion()
- 10 core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::getDefaultRegion()
- 11.x core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::getDefaultRegion()
Gets the default region.
Return value
string The machine-readable name of the default region.
File
-
core/
modules/ layout_builder/ src/ Section.php, line 149
Class
- Section
- Provides a domain object for layout sections.
Namespace
Drupal\layout_builderCode
public function getDefaultRegion() {
return $this->layoutPluginManager()
->getDefinition($this->getLayoutId())
->getDefaultRegion();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.