Wrong parameter order in MediaEntityGeneratorD7 Constructor

Created on 16 August 2023, 10 months ago
Updated 13 September 2023, 10 months ago

Problem/Motivation

The order of passed services to the MediaEntityGeneratorD7 Constructor is in the wrong order. This causes the drush command migrate:duplicate-file-detection to break:

TypeError: Drupal\migrate_file_to_media\Plugin\migrate\source\MediaEntityGeneratorD7::__construct(): Argument #5 ($entity_type_manager) must be of type Drupal\Core\Entity\EntityTypeManagerInterface, Drupal\Core\State\State given, called in /var/www/html/web/core/modules/node/src/Plugin/migrate/source/d7/Node.php on line 77 in Drupal\migrate_file_to_media\Plugin\migrate\source\MediaEntityGeneratorD7->__construct() (line 60 of /var/www/html/web/modules/contrib/migrate_file_to_media/src/Plugin/migrate/source/MediaEntityGeneratorD7.php).
πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium PeterLemmens

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

Comments & Activities

Production build 0.69.0 2024