function Section::getDefaultRegion

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::getDefaultRegion()
  2. 10 core/modules/layout_builder/src/Section.php \Drupal\layout_builder\Section::getDefaultRegion()
  3. 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_builder

Code

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.