You are here

public function FieldLayoutEntityDisplayTrait::getDefaultRegion in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php \Drupal\field_layout\Entity\FieldLayoutEntityDisplayTrait::getDefaultRegion()
  2. 10 core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php \Drupal\field_layout\Entity\FieldLayoutEntityDisplayTrait::getDefaultRegion()

Implements \Drupal\field_layout\Display\EntityDisplayWithLayoutInterface::getDefaultRegion().

File

core/modules/field_layout/src/Entity/FieldLayoutEntityDisplayTrait.php, line 157

Class

FieldLayoutEntityDisplayTrait
Provides shared code for entity displays.

Namespace

Drupal\field_layout\Entity

Code

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