Problem/Motivation

There is a bug due to a missing dependency for Paragraphs.
EBT Tiles creates a paragraph type EBT Tiles Items.
Therefore, Paragraphs must be installed.
However, this dependency is not listed in the info file.
So if the editor user tries to install EBT Tiles without having Paragraphs, there will be an error.

Steps to reproduce

  1. Ensure that Paragraphs is not installed
  2. Try to install EBT Tiles
  3. Result: The following error will be displayed:
In UnmetDependenciesException.php line 100:
                                                                                                                                                                                                                                                               
  Configuration objects provided by <em class="placeholder">ebt_tiles</em> have unmet dependencies: <em class="placeholder">core.entity_form_display.block_content.ebt_tiles.default (paragraphs), core.entity_view_display.block_content.ebt_tiles.default (  
  entity_reference_revisions), field.storage.block_content.field_ebt_tiles (entity_reference_revisions, paragraphs)</em> 

Proposed resolution

Define the dependency for Paragraphs.
Info file
In the dependencies key use:

dependencies:
  - ebt_core:ebt_core
  - paragraphs:paragraphs

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork ebt_tiles-3459802

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

renatog created an issue. See original summary.

renatog’s picture

  • cc71ee6a committed on 1.4.x
    Issue #3459802 by renatog: Error on install due to Missing dependency to...
levmyshkin’s picture

Hi Renato, thank you!

levmyshkin’s picture

Status: Needs review » Fixed
levmyshkin’s picture

Status: Fixed » Closed (fixed)