Problem/Motivation
When installing a theme that has Layout Plugin classes and default configuration that references these plugins, installation fails because the plugin class is not found.
In DefaultFactory.php line 97:
Plugin (civictheme_three_columns) instance class "Drupal\civictheme\Plugin\
Layout\ThreeColumnsLayout" does not exist.
This has only started occurring on Drupal 11.3.x (might be connected with work done with OOP Hooks in themes).
Steps to reproduce
- Enable theme with layout plugin classes and configuration (like entity_display referencing that layout)
Proposed resolution
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3567412
Show commands
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 #3
richardgaunt commentedComment #4
richardgaunt commentedTaking a look at ModuleInstaller it seems to `updateKernel` at several points through the installation process to avoid this issue.
Comment #5
richardgaunt commentedSome tests are failing needs more investigation
Comment #7
richardgaunt commentedAlso experiencing on 10.6 when deleting fields - this is when the theme with the plugin is not the admin theme.