add a way for getImportConfigProcessorSettings() to specify the default stages and weights

Created on 20 May 2025, 3 days ago

Problem/Motivation

In tests we have to do something like this:

    $processors = parent::getImportConfigProcessorSettings();
    $processors['redirect_processor'] = [
      'weights' => [
        'prepare_importable_entity_data' => -200,
        'post_entity_save' => 100,
      ],
    ];

which is duplicating the default weights on the plugin's definition, and is brittle.

Instead, we should have a way to specify that we want the defaults from the plugin definition.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

4.0

Component

Code

Created by

🇬🇧United Kingdom joachim

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

Comments & Activities

Production build 0.71.5 2024