interface PolicyInterface

Policy interface.

Methods

bool|null
before(UserEntityInterface|null $user, string $action, object|string $entity)

Return a boolean to skip further authorization or null to continue.

Details

at line 27
bool|null before(UserEntityInterface|null $user, string $action, object|string $entity)

Return a boolean to skip further authorization or null to continue.

Parameters

UserEntityInterface|null $user User entity
string $action Action
object|string $entity Entity instance or class name

Return Value

bool|null