Problem/Motivation

The Recurring Events module provides the EventUserTrait to implement EntityOwnerInterface.

In this interface the getOwner() function specifies the return value to be a UserInterface instance. However if the owner of the event is subsequently deleted then the implementation in the trait will return NULL. This is not an allowed return value according to the specification.

Proposed resolution

Update the implementation in the trait to return the anonymous user if the user does not exist.

A similar topic has been discussed for Drupal Core and returning User::getAnonymousUser() seems to be the agreed upon solution.

User interface changes

None.

API changes

None.

Data model changes

None.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kasperg created an issue. See original summary.

kasperg’s picture

Status: Active » Needs review