function LayoutBuilderEntityViewDisplay::getDefaultRegion
Gets the default region.
Return value
string The default region for this display.
Overrides EntityDisplayBase::getDefaultRegion
File
- 
              core/
modules/ layout_builder/ src/ Entity/ LayoutBuilderEntityViewDisplay.php, line 250  
Class
- LayoutBuilderEntityViewDisplay
 - Provides an entity view display entity that has a layout.
 
Namespace
Drupal\layout_builder\EntityCode
protected function getDefaultRegion() {
  if ($this->hasSection(0)) {
    return $this->getSection(0)
      ->getDefaultRegion();
  }
  return parent::getDefaultRegion();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.