UserCancelMethodsAlterEvent.php in Hook Event Dispatcher 3.x
File
modules/user_event_dispatcher/src/Event/User/UserCancelMethodsAlterEvent.php
View source
<?php
namespace Drupal\user_event_dispatcher\Event\User;
use Drupal\hook_event_dispatcher\Event\EventInterface;
use Drupal\hook_event_dispatcher\HookEventDispatcherInterface;
use Symfony\Component\EventDispatcher\Event;
final class UserCancelMethodsAlterEvent extends Event implements EventInterface {
private $methods;
public function __construct(array &$methods) {
$this->methods =& $methods;
}
public function &getMethods() : array {
return $this->methods;
}
public function getDispatcherType() : string {
return HookEventDispatcherInterface::USER_CANCEL_METHODS_ALTER;
}
}