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

Breadcrumb

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

function LayoutBuilderEntityViewDisplay::calculateDependencies

Overrides EntityDisplayBase::calculateDependencies

File

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

Class

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

Namespace

Drupal\layout_builder\Entity

Code

public function calculateDependencies() {
    parent::calculateDependencies();
    foreach ($this->getSections() as $section) {
        $this->calculatePluginDependencies($section->getLayout());
        foreach ($section->getComponents() as $component) {
            $this->calculatePluginDependencies($component->getPlugin());
        }
    }
    return $this;
}
RSS feed
Powered by Drupal