Problem/Motivation
When I try to install Patternkit on a standard profile Drupal 11.2 site, I get this error:
PHP Fatal error: Trait "Drupal\layout_builder\LayoutEntityHelperTrait" not found in /var/www/web/modules/contrib/patternkit/src/LayoutHelper.php on line 26
Steps to reproduce
- Install Drupal 11.2 with the standard profile
- Try to enable Patternkit module
- Observe the error noted above?
Proposed resolution
Make Patternkit dependent on Layout Builder? Or somehow only load LB's traits conditionally, e.g., if LB is itself enabled?
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork patternkit-3541532
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 #5
slucero@krisahil, we had been looking at marking the Layotu Builder module as required already, so we'll move forward with your suggestion of doing so. I've uploaded an MR making this change.
Comment #6
minsharm commentedI tested this issue today and can see PK module is now dependent on Layout Builder, which is expected.
Comment #8
sluceroVerified internally and ready for merge into 9.1.x.
Comment #9
sluceroMerged for inclusion in the 9.1.3 release (see #3542304: Patternkit 9.1.3 Release Plan).