Make Taxonomy module a dependency of this

Created on 4 May 2023, over 1 year 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

Submit a patch

User interface changes

none

API changes

none

Data model changes

none

🐛 Bug report
Status

Active

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.71.5 2024