Problem/Motivation

EntityAccessControlHandlerInterface::createAccess() does not get the entity type of the entity to be created passed. This makes it impossible to implement a generic access control handler for multiple entity types.

Proposed resolution

Pass the entity type in some way.

Remaining tasks

User interface changes

None.

API changes

Comments

Berdir’s picture

Status: Active » Postponed (maintainer needs more info)

Uh, it is a handler, all handlers have $this->entityType(Id) available ?

tstoeckler’s picture

Category: Bug report » Support request
Status: Postponed (maintainer needs more info) » Fixed

Wow, that's incredibly stupid, even by my standards. Sorry for the noise.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.