entityIsAccessible method should accept EntityInterface instead of ContentEntityInterface

Created on 22 March 2023, about 1 year ago
Updated 10 May 2023, about 1 year ago

Problem/Motivation

In CustomElementsProcessorFieldUtilsTrait there is entityIsAccessible method which is called also on entities referenced from entity reference fields. This method only accepts ContentEntityInterface type for the entity parameter but it is possible for it to be called on ConfigEntityInterface too because there are fields that can reference this tipe of entities.

Proposed resolution

Update entityIsAccessible to accept EntityInterface instead of ContentEntityInterface.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡·πŸ‡΄Romania ciprian.stavovei

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

Comments & Activities

Production build 0.69.0 2024