Closed (fixed)
Project:
Migrate from Services
Version:
1.0.0
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
5 Feb 2026 at 11:05 UTC
Updated:
20 Feb 2026 at 10:09 UTC
Jump to comment: Most recent
New modules, which are compatible with Drupal 10 and higher versions are expected to include type declarations in property definitions, and use constructor property promotion.
/**
* Get the migration plugin manager.
*
* @var \Drupal\migrate\Plugin\MigrationPluginManagerInterface|object|null
*/
protected MigrationPluginManagerInterface $migrationPluginManager;
/**
* {@inheritdoc}
*/
public function __construct(MigrationInterface $migration, MigrateMessageInterface $message, array $options = []) { /**
* Plugin manager for migration plugins.
*/
protected MigrationPluginManagerInterface $migrationPluginManager;
/**
* The logger service.
*
* @var \Psr\Log\LoggerInterface
*/
protected LoggerInterface $logger;
/**
* The http client.
*
* @var \GuzzleHttp\Client
*/
protected Client $httpClient;
/**
* Constructs a new MigrationExecuteForm object.
*
* @param \Drupal\migrate\Plugin\MigrationPluginManagerInterface $migration_plugin_manager
* The plugin manager for config entity-based migrations.
* @param \Psr\Log\LoggerInterface $logger
* The logger service.
* @param \GuzzleHttp\ClientInterface $http_client
* The Guzzle HTTP client.
*/
public function __construct(
MigrationPluginManagerInterface $migration_plugin_manager,
LoggerInterface $logger,
Client $http_client,
) {
$this->migrationPluginManager = $migration_plugin_manager;
$this->logger = $logger;
$this->httpClient = $http_client;
}Review and update the module code to comply with Drupal 10+ standards.
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
Comment #2
juandels3 commentedComment #5
juandels3 commentedComment #6
juandels3 commentedComment #7
juandels3 commented