Allow to override extension by introducing plugin weights / priorities

Created on 6 December 2024, 4 months ago

Problem/Motivation

I would like to override the types and fields that are defined in an extension that ships with a contrib module with my own customizations.

Proposed resolution

A simple way to achieve this would be to introduce a weight or priority on the SchemaExtension plugin annotation, so any extensions that need to override existing third-party extensions can be given a lower priority.

Known workarounds

This can also be achieved by putting the overrides in an dedicated extension that is alphabetically ordered last (example extension name: zzzzz_override_extension).

Remaining tasks

API changes

A new optional key "priority" will be introduced to the SchemaExtension annotation, with a default value of 0.

✨ Feature request
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡§πŸ‡¬Bulgaria pfrenssen Sofia

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