ECA Access and ECA Render are not providing entity tokens

Issue information

From user: mxh

Related to !379 (merged)

Contribution record

Fork management

Problem/Motivation

Due to refactorings in #3331337: Code cleanup from PHPStan report the EntityEventInterface was mostly replaced by ContentEntityEventInterface. However, not all places can ditinctively define that they return a content entity and thus still implement EntityEventInterface instead. But unfortunately those components are not having the entity tokens provided anymore, because the according event subscriber is only doing this for ContentEntityEventInterface ATM.

Steps to reproduce

Proposed resolution

Use a proper inheritance of ContentEntityEventInterface and EntityEventInterface, then support EntityEventInterface again on the according subscriber so that entity tokens are available again.

Remaining tasks

User interface changes

API changes

Data model changes

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information