ReferenceFieldExtractor not checking entity before passing to extractTextMetadata

Created on 22 April 2025, 17 days ago

Problem/Motivation

ReferenceFieldExtractor is passing entities to extractTextMetadata() without checking the type of those entities, while extractTextMetadata() is expecting entities of type ContentEntityInterface.

Entity reference field can be used to reference other types too.

Steps to reproduce

Install the domain and domain access (sub)modules to add the domain access fields to nodes, or an entity reference to roles for example.

Proposed resolution

Check the type of the entity before passing it to extractTextMetadata().

🐛 Bug report
Status

Active

Version

1.1

Component

Other Submodules

Created by

🇧🇪Belgium andreasderijcke Antwerpen / Gent

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