You are here

public function Section::getDefaultRegion in Drupal 9

Same name and namespace in other branches
  1. 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_builder

Code

public function getDefaultRegion() {
  return $this
    ->layoutPluginManager()
    ->getDefinition($this
    ->getLayoutId())
    ->getDefaultRegion();
}