Cannot install because trait LayoutEntityHelperTrait missing

Created on 15 August 2025, 2 months ago

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

🐛 Bug report
Status

Active

Version

9.1

Component

Module Core

Created by

🇺🇸United States krisahil

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