Allow base plugin definition to be altered before derived

Created on 19 May 2023, over 1 year ago

Problem/Motivation

At the moment, altering a plugin is done via hook_<plugin_alter_info>_alter, this happens after derivatives are already defined. The problem is, we can't change for example the deriver class because it's already too late.

Steps to reproduce

Proposed resolution

Provide a hook alter or dispatch event before calling \Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator::getDerivatives so that the base plugin definition can be altered

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Feature request
Status

Active

Version

10.1

Component
Plugin 

Last updated about 15 hours ago

Created by

🇮🇩Indonesia el7cosmos 🇮🇩 GMT+7

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024