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

Breadcrumb

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

function LayoutBuilderEntityViewDisplay::getDefaultRegion

Overrides EntityDisplayBase::getDefaultRegion

File

core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php, line 254

Class

LayoutBuilderEntityViewDisplay
Provides an entity view display entity that has a layout.

Namespace

Drupal\layout_builder\Entity

Code

protected function getDefaultRegion() {
    if ($this->hasSection(0)) {
        return $this->getSection(0)
            ->getDefaultRegion();
    }
    return parent::getDefaultRegion();
}

API Navigation

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