You are here

public function UserCancelEvent::__construct in Hook Event Dispatcher 3.x

Same name and namespace in other branches
  1. 8.2 modules/user_event_dispatcher/src/Event/User/UserCancelEvent.php \Drupal\user_event_dispatcher\Event\User\UserCancelEvent::__construct()

UserCancelEvent constructor.

Parameters

array $edit: The array of form values submitted by the user.

\Drupal\Core\Session\AccountInterface $account: Account.

string $method: The account cancellation method.

File

modules/user_event_dispatcher/src/Event/User/UserCancelEvent.php, line 44

Class

UserCancelEvent
Class UserCancelEvent.

Namespace

Drupal\user_event_dispatcher\Event\User

Code

public function __construct(array $edit, AccountInterface $account, string $method) {
  $this->edit = $edit;
  $this->account = $account;
  $this->method = $method;
}