You are here

protected function EntityDisplayBase::getDefaultRegion in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::getDefaultRegion()

Gets the default region.

Return value

string The default region for this display.

3 calls to EntityDisplayBase::getDefaultRegion()
EntityDisplayBase::init in core/lib/Drupal/Core/Entity/EntityDisplayBase.php
Initializes the display.
EntityDisplayBase::preSave in core/lib/Drupal/Core/Entity/EntityDisplayBase.php
Acts on an entity before the presave hook is invoked.
LayoutBuilderEntityViewDisplay::getDefaultRegion in core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
Gets the default region.
1 method overrides EntityDisplayBase::getDefaultRegion()
LayoutBuilderEntityViewDisplay::getDefaultRegion in core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php
Gets the default region.

File

core/lib/Drupal/Core/Entity/EntityDisplayBase.php, line 565

Class

EntityDisplayBase
Provides a common base class for entity view and form displays.

Namespace

Drupal\Core\Entity

Code

protected function getDefaultRegion() {
  return 'content';
}