public function Section::getDefaultRegion in Drupal 9
Same name and namespace in other branches
- 8 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 156
Class
- Section
- Provides a domain object for layout sections.
Namespace
Drupal\layout_builderCode
public function getDefaultRegion() {
return $this
->layoutPluginManager()
->getDefinition($this
->getLayoutId())
->getDefaultRegion();
}