- Issue created by @adamzimmermann
- @adamzimmermann opened merge request.
When using the Paragraphs module with the paragraphs_library submodule enabled, shared library paragraphs can be referenced by multiple host entities (e.g. nodes, blocks, etc.).
If a shared library paragraph is updated directly (via the admin UI or programmatically), host entities that reference it are not updated. Specifically:
This leads to stale or incorrect metadata and indexing for referencing content. The end-user sees the updated paragraph content, but automated systems believe the page hasn't changed.
This behavior is confusing and breaks expectations for revision-aware and time-sensitive tools like sitemaps, feeds, or decoupled apps.
I'm not sure if this is a bug, a feature request, or intentional functionality, so please adjust as you see fit.
The core issue is that entity reference revisions don't propagate changes up to host entities.
Potential solutions include:
✅ Option 1: Programmatically trigger host entity revisions when shared paragraph is updated
We will need to address the behavior around drafts and content in other revision states, as the latest revision might not be the active revision.
✅ Option 2: Update changed timestamp without new revision
I'm not sure what unintended side-effects this might have. Working around standard entity operations always worries me.
$host->set('changed', \Drupal::time()->getRequestTime());
$host->save();
Changes would be backend-only.
None in initial implementation. Potential for a service to expose referenced entity update triggers.
None. Reuses existing revision and timestamp systems.
Active
1.0
Module: Library