Error: Typed property EntityBundleClassGenerator::$pluginManager must not be accessed before initialization

Created on 10 July 2025, 3 months ago

Problem/Motivation

The following error displays when creating a node type, without having the Entity Model module installed:

Error: Typed property Drupal\entity_bundle_scaffold\Service\Generator\EntityBundleClassGenerator::$pluginManager must not be accessed before initialization in Drupal\entity_bundle_scaffold\Service\Generator\EntityBundleClassGenerator->getBaseClass() (line 431 of modules/contrib/entity_bundle_scaffold/src/Service/Generator/EntityBundleClassGenerator.php).
Drupal\entity_bundle_scaffold\Service\Generator\EntityBundleClassGenerator->generateNew() (Line: 153)
Drupal\entity_bundle_scaffold\Hooks\EntityInsertHooks->generateBundleClass() (Line: 66)
Drupal\entity_bundle_scaffold\Hooks\EntityInsertHooks->onBundleInsert() (Line: 46)
entity_bundle_scaffold_entity_insert() (Line: 53)

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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