Fix (paragraphs.module:477-509) — added paragraphs_entity_delete() that,...
Fix (paragraphs.module:477-509) — added paragraphs_entity_delete() that, when any content entity is deleted, queries the paragraph storage for all entities whose parent_type/parent_id match the deleted entity and deletes them immediately. Because paragraphs always have a single owning parent, this is safe; nested paragraphs cascade naturally because their parent paragraph's deletion re-fires the hook.
Tests
- New: tests/src/Kernel/ParagraphsDeleteParentTest.php — verifies that deleting a node removes all paragraph entities and all paragraph DB tables become empty; second test covers nested paragraphs.
- Updated: ParagraphsEntityMethodsTest::testParagraphLabel had an assertion that documented the buggy behavior (expected an "Orphaned …" label after node delete). Replaced it with an assertion that the paragraph is gone. The field-storage-deletion orphan-label coverage further down is preserved.
Closes #2935630