Missing plugin not cached

Created on 6 December 2024, about 1 month ago

Problem/Motivation

We discover that when you enable a plugin from another module, and the plugin definition is missing, like when the other module is not up to date, the StyleOptionPluginManager will crash if the plugin is declared on a paragraph.

Steps to reproduce

  • Activate the style_options module and enable it on a paragraph type
  • In the style_options.yml file of a custom theme or module, declare a context to enable an un-existing plugin on the paragraph type

Proposed resolution

Implements \Drupal\Component\Plugin\FallbackPluginManagerInterface on the StyleOptionPluginManager and declare a broken fallback plugin which does nothing.

Remaining tasks

Make the changes and test it.

User interface changes

None.

API changes

None.

Data model changes

Add a broken fallback plugin.

Feature request
Status

Active

Version

1.1

Component

Code

Created by

🇫🇷France ccrosaz

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