function EntityDisplayBase::getDefaultRegion

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::getDefaultRegion()
  2. 8.9.x core/lib/Drupal/Core/Entity/EntityDisplayBase.php \Drupal\Core\Entity\EntityDisplayBase::getDefaultRegion()
  3. 11.x 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.

2 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.
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 543

Class

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

Namespace

Drupal\Core\Entity

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.