Loading modules/core_event_dispatcher/src/BlockHookEvents.php +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ use Drupal\hook_event_dispatcher\HookEventDispatcherInterface; /** * Defines events for block hooks. */ class BlockHookEvents { final class BlockHookEvents { /** * Alter the result of \Drupal\Core\Block\BlockBase::build(). Loading modules/user_event_dispatcher/src/Event/User/UserCancelEvent.php +5 −3 Original line number Diff line number Diff line Loading @@ -2,10 +2,10 @@ namespace Drupal\user_event_dispatcher\Event\User; use Drupal\Component\EventDispatcher\Event; use Drupal\Core\Session\AccountInterface; use Drupal\hook_event_dispatcher\Event\EventInterface; use Drupal\hook_event_dispatcher\HookEventDispatcherInterface; use Drupal\Component\EventDispatcher\Event; use Drupal\user_event_dispatcher\UserHookEvents; /** * Class UserCancelEvent. Loading @@ -18,12 +18,14 @@ final class UserCancelEvent extends Event implements EventInterface { * @var array */ private $edit; /** * Account. * * @var \Drupal\Core\Session\AccountInterface */ private $account; /** * The account cancellation method. * Loading Loading @@ -84,7 +86,7 @@ final class UserCancelEvent extends Event implements EventInterface { * The dispatcher type. */ public function getDispatcherType(): string { return HookEventDispatcherInterface::USER_CANCEL; return UserHookEvents::USER_CANCEL; } } modules/user_event_dispatcher/src/Event/User/UserCancelMethodsAlterEvent.php +3 −3 Original line number Diff line number Diff line Loading @@ -2,9 +2,9 @@ namespace Drupal\user_event_dispatcher\Event\User; use Drupal\hook_event_dispatcher\Event\EventInterface; use Drupal\hook_event_dispatcher\HookEventDispatcherInterface; use Drupal\Component\EventDispatcher\Event; use Drupal\hook_event_dispatcher\Event\EventInterface; use Drupal\user_event_dispatcher\UserHookEvents; /** * Class UserFormatNameAlterEvent. Loading Loading @@ -45,7 +45,7 @@ final class UserCancelMethodsAlterEvent extends Event implements EventInterface * The dispatcher type. */ public function getDispatcherType(): string { return HookEventDispatcherInterface::USER_CANCEL_METHODS_ALTER; return UserHookEvents::USER_CANCEL_METHODS_ALTER; } } modules/user_event_dispatcher/src/Event/User/UserFormatNameAlterEvent.php +4 −3 Original line number Diff line number Diff line Loading @@ -2,10 +2,10 @@ namespace Drupal\user_event_dispatcher\Event\User; use Drupal\Component\EventDispatcher\Event; use Drupal\Core\Session\AccountInterface; use Drupal\hook_event_dispatcher\Event\EventInterface; use Drupal\hook_event_dispatcher\HookEventDispatcherInterface; use Drupal\Component\EventDispatcher\Event; use Drupal\user_event_dispatcher\UserHookEvents; /** * Class UserFormatNameAlterEvent. Loading @@ -18,6 +18,7 @@ final class UserFormatNameAlterEvent extends Event implements EventInterface { * @var string */ private $name; /** * Account. * Loading Loading @@ -65,7 +66,7 @@ final class UserFormatNameAlterEvent extends Event implements EventInterface { * The dispatcher type. */ public function getDispatcherType(): string { return HookEventDispatcherInterface::USER_FORMAT_NAME_ALTER; return UserHookEvents::USER_FORMAT_NAME_ALTER; } } modules/user_event_dispatcher/src/Event/User/UserLoginEvent.php +3 −3 Original line number Diff line number Diff line Loading @@ -2,10 +2,10 @@ namespace Drupal\user_event_dispatcher\Event\User; use Drupal\Component\EventDispatcher\Event; use Drupal\Core\Session\AccountInterface; use Drupal\hook_event_dispatcher\Event\EventInterface; use Drupal\hook_event_dispatcher\HookEventDispatcherInterface; use Drupal\Component\EventDispatcher\Event; use Drupal\user_event_dispatcher\UserHookEvents; /** * Class UserLoginEvent. Loading Loading @@ -46,7 +46,7 @@ final class UserLoginEvent extends Event implements EventInterface { * The dispatcher type. */ public function getDispatcherType(): string { return HookEventDispatcherInterface::USER_LOGIN; return UserHookEvents::USER_LOGIN; } } Loading
modules/core_event_dispatcher/src/BlockHookEvents.php +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ use Drupal\hook_event_dispatcher\HookEventDispatcherInterface; /** * Defines events for block hooks. */ class BlockHookEvents { final class BlockHookEvents { /** * Alter the result of \Drupal\Core\Block\BlockBase::build(). Loading
modules/user_event_dispatcher/src/Event/User/UserCancelEvent.php +5 −3 Original line number Diff line number Diff line Loading @@ -2,10 +2,10 @@ namespace Drupal\user_event_dispatcher\Event\User; use Drupal\Component\EventDispatcher\Event; use Drupal\Core\Session\AccountInterface; use Drupal\hook_event_dispatcher\Event\EventInterface; use Drupal\hook_event_dispatcher\HookEventDispatcherInterface; use Drupal\Component\EventDispatcher\Event; use Drupal\user_event_dispatcher\UserHookEvents; /** * Class UserCancelEvent. Loading @@ -18,12 +18,14 @@ final class UserCancelEvent extends Event implements EventInterface { * @var array */ private $edit; /** * Account. * * @var \Drupal\Core\Session\AccountInterface */ private $account; /** * The account cancellation method. * Loading Loading @@ -84,7 +86,7 @@ final class UserCancelEvent extends Event implements EventInterface { * The dispatcher type. */ public function getDispatcherType(): string { return HookEventDispatcherInterface::USER_CANCEL; return UserHookEvents::USER_CANCEL; } }
modules/user_event_dispatcher/src/Event/User/UserCancelMethodsAlterEvent.php +3 −3 Original line number Diff line number Diff line Loading @@ -2,9 +2,9 @@ namespace Drupal\user_event_dispatcher\Event\User; use Drupal\hook_event_dispatcher\Event\EventInterface; use Drupal\hook_event_dispatcher\HookEventDispatcherInterface; use Drupal\Component\EventDispatcher\Event; use Drupal\hook_event_dispatcher\Event\EventInterface; use Drupal\user_event_dispatcher\UserHookEvents; /** * Class UserFormatNameAlterEvent. Loading Loading @@ -45,7 +45,7 @@ final class UserCancelMethodsAlterEvent extends Event implements EventInterface * The dispatcher type. */ public function getDispatcherType(): string { return HookEventDispatcherInterface::USER_CANCEL_METHODS_ALTER; return UserHookEvents::USER_CANCEL_METHODS_ALTER; } }
modules/user_event_dispatcher/src/Event/User/UserFormatNameAlterEvent.php +4 −3 Original line number Diff line number Diff line Loading @@ -2,10 +2,10 @@ namespace Drupal\user_event_dispatcher\Event\User; use Drupal\Component\EventDispatcher\Event; use Drupal\Core\Session\AccountInterface; use Drupal\hook_event_dispatcher\Event\EventInterface; use Drupal\hook_event_dispatcher\HookEventDispatcherInterface; use Drupal\Component\EventDispatcher\Event; use Drupal\user_event_dispatcher\UserHookEvents; /** * Class UserFormatNameAlterEvent. Loading @@ -18,6 +18,7 @@ final class UserFormatNameAlterEvent extends Event implements EventInterface { * @var string */ private $name; /** * Account. * Loading Loading @@ -65,7 +66,7 @@ final class UserFormatNameAlterEvent extends Event implements EventInterface { * The dispatcher type. */ public function getDispatcherType(): string { return HookEventDispatcherInterface::USER_FORMAT_NAME_ALTER; return UserHookEvents::USER_FORMAT_NAME_ALTER; } }
modules/user_event_dispatcher/src/Event/User/UserLoginEvent.php +3 −3 Original line number Diff line number Diff line Loading @@ -2,10 +2,10 @@ namespace Drupal\user_event_dispatcher\Event\User; use Drupal\Component\EventDispatcher\Event; use Drupal\Core\Session\AccountInterface; use Drupal\hook_event_dispatcher\Event\EventInterface; use Drupal\hook_event_dispatcher\HookEventDispatcherInterface; use Drupal\Component\EventDispatcher\Event; use Drupal\user_event_dispatcher\UserHookEvents; /** * Class UserLoginEvent. Loading Loading @@ -46,7 +46,7 @@ final class UserLoginEvent extends Event implements EventInterface { * The dispatcher type. */ public function getDispatcherType(): string { return HookEventDispatcherInterface::USER_LOGIN; return UserHookEvents::USER_LOGIN; } }