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

  1. 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

Command icon 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

richardgaunt created an issue. See original summary.

richardgaunt’s picture

Status: Active » Needs review
richardgaunt’s picture

Taking a look at ModuleInstaller it seems to `updateKernel` at several points through the installation process to avoid this issue.

richardgaunt’s picture

Status: Needs review » Needs work

Some tests are failing needs more investigation

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

richardgaunt’s picture

Also experiencing on 10.6 when deleting fields - this is when the theme with the plugin is not the admin theme.