Calculate dependencies should include block dependencies

Created on 14 November 2024, about 1 month ago

Problem/Motivation

Calculate dependencies should include block dependencies.

e.g. from LayoutBuilderEntityViewDisplay:

  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;
  }

Steps to reproduce

Add a block provided by a module and export config.
The dependency is not there.

Proposed resolution

We should include dependencies.

Remaining tasks

Fix and test.

User interface changes

None.

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024