Error to run hook-updates with Drupal 10.2.x

Created on 16 January 2024, 5 months ago
Updated 2 February 2024, 5 months ago

Problem/Motivation

When the Data Policy module is enabled and we try to execute any hook-update, an error shown:

Drupal\data_policy\DataPolicyModuleInstaller::__construct(): Argument #6 ($entity_type_manager) must be of type Drupal\Core\Entity\EntityTypeManagerInterface, Drupal\Core\Logger\LoggerChannel given

Steps to reproduce

  1. Enable Data Policy module
  2. Create a new hook-update in any module
  3. Try to execute the hook-update

Proposed resolution

The ModuleInstaller class is extended from DataPolicy and it has a new argument and should be added.

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡·Brazil viniciusrp

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024