You are here

public function UserCancelEvent::__construct in Hook Event Dispatcher 8

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

src/Event/User/UserCancelEvent.php, line 46

Class

UserCancelEvent
Class UserCancelEvent.

Namespace

Drupal\hook_event_dispatcher\Event\User

Code

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