Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityDisplayBase.php

function EntityDisplayBase::getDefaultRegion

Gets the default region.

Return value

string The default region for this display.

4 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.
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 544

Class

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

Namespace

Drupal\Core\Entity

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal