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

Issue fork dashboard-3487609

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

penyaskito created an issue. See original summary.

plopesc made their first commit to this issue’s fork.

penyaskito’s picture

Status: Active » Reviewed & tested by the community

Tests passed and failed as expected, thanks!

  • penyaskito committed 32b13189 on 2.x authored by plopesc
    Issue #3487609 by plopesc, penyaskito: Calculate dependencies should...
penyaskito’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.