public function Section::getDefaultRegion in Drupal 8
Same name and namespace in other branches
- 9 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();
}