Block config should depend on facet config

Created on 1 December 2023, 12 months ago

Problem/Motivation

Config files can declare dependencies on other configs.
For example a facet block from the facet module declares it depends on the facet config:

dependencies:
  config:
    - facets.facet.foo

This allows Drupal core to trigger an error when importing the block config if the facet does not exist.

The facets_block does not declare a dependency on facets it uses.

Steps to reproduce

Create a block with facets_block.
It only has the following dependencies:

dependencies:
  module:
    - block_visibility_groups
    - facets_block
  theme:
    - front

Proposed resolution

Each facet that is enabled in the block should be added as a dependency.

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France prudloff Lille

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

Comments & Activities

Production build 0.71.5 2024