Error checking paragraph parent in asymmetric_translations_paragraph_presave() when using config pages with paragraphs

Created on 20 April 2023, over 1 year ago

Problem/Motivation

In the method asymmetric_translations_paragraph_presave() (see asymmetric_translations.module) we keep checking for the paragraph parent until we find a node instance.
However when using config pages in combination with paragraphs we run into a problem:
The method 'getParentEntity' is not available in the config page entity, but we call it anyway.

Steps to reproduce

- Create a config page with a paragraph
- Add a paragraph
- Save the page
- Get error message

Proposed resolution

- Improve the check on the entity type

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024