Copied!

AssignRoleToUserEvent

AssignRoleToUserEvent.php : 16
Extends AfterEvent

Event emitted after action execution.

Methods

public__construct()

AssignRoleToUserEvent.php : 27
public __construct(Role $role, User $user[, RoleLimitation|null $roleLimitation = null ])

Parameters

Name Type Default value Description
$role Role - -
$user User - -
$roleLimitation RoleLimitation|null null -

publicgetRole()

AssignRoleToUserEvent.php : 37
public getRole() : Role

Return values

Role

publicgetRoleLimitation()

AssignRoleToUserEvent.php : 47
public getRoleLimitation() : RoleLimitation|null

Return values

RoleLimitation|null

publicgetUser()

AssignRoleToUserEvent.php : 42
public getUser() : User

Return values

User

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicstopPropagation()

Event.php : 50

Stops the propagation of the event to further event listeners.

public stopPropagation() : void

If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().