Clear entity type cached definitions when a model owner gets enabled after modeler api

Created on 4 July 2025, 10 days ago

Problem/Motivation

When the model owner gets enabled after modeler API but the entity was already enabled before, e.g. for ECA when eca_ui gets enabled a while after, then the \Drupal\modeler_api\Hook\EntityHooks::entityTypeBuild is not invoked and that can cause exceptions, e.g. when going to the collection page where the list builder declaration is missing.

Proposed resolution

Implement a hook that clears the cached definitions so that they get rebuilt when needed.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024