Make Taxonomy module a dependency of this

Created on 4 May 2023, about 1 year ago
Updated 19 September 2023, 9 months ago

Problem/Motivation

If you install the module on a site that doesn't have the taxonomy module installed you get this error:

 [error]  Error: Call to a member function setHandlerClass() on null in taxonomy_term_revision_entity_type_alter() (line 57 of /var/www/html/****/web/modules/contrib/taxonomy_term_revision/taxonomy_term_revision.module) #0 /var/www/html/****/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(562): taxonomy_term_revision_entity_type_alter(Array, NULL, NULL)

among others, I'm sure. Also, it just makes sense that you'd want to require the Taxonomy module to be enabled for this to work.

This is most relevant if you're installing a fresh site from existing config, where this module is already enabled.

Steps to reproduce

Either install a site fresh using existing config, or disable the taxonomy module on an existing site where this module is enabled.

Proposed resolution

Add the dependency

Remaining tasks

Review the patch

User interface changes

none

API changes

none

Data model changes

none

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mariacha1

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

Comments & Activities

Production build 0.69.0 2024