You are here

public function RoleExpiresEvent::__construct in Role Expire 2.x

Same name and namespace in other branches
  1. 8 src/Event/RoleExpiresEvent.php \Drupal\role_expire\Event\RoleExpiresEvent::__construct()

Constructs the object.

Parameters

\Drupal\user\UserInterface $account: The account of the user logged in.

string $ridBefore: The role name that has expired.

File

src/Event/RoleExpiresEvent.php, line 39

Class

RoleExpiresEvent
Event that is fired when a user loses one of its roles.

Namespace

Drupal\role_expire\Event

Code

public function __construct(UserInterface $account, $ridBefore) {
  $this->account = $account;
  $this->ridBefore = $ridBefore;
}