concrete/src/User/Notification/UserNotificationEventHandler.php
public function deactivated(DeactivateUser $event)
    {
        /** @var UserDeactivatedType $type */
        $type = $this->notificationManager->driver(UserDeactivatedType::IDENTIFIER);
        $notifier = $type->getNotifier();

        if (method_exists($notifier, 'notify')) {
            $subscription = $type->getSubscription($event);
            $users = $notifier->getUsersToNotify($subscription, $event);
            $notification = new UserDeactivatedNotification($event);
            $notifier->notify($users, $notification);
        }
    }
public function deactivated(DeactivateUser $event)
    {
        /** @var UserDeactivatedType $type */
        $type = $this->notificationManager->driver(UserDeactivatedType::IDENTIFIER);
        $notifier = $type->getNotifier();

        if (method_exists($notifier, 'notify')) {
            $subscription = $type->getSubscription($event);
            $users = $notifier->getUsersToNotify($subscription, $event);
            $notification = new UserDeactivatedNotification($event);
            $notifier->notify($users, $notification);
        }
    }
public function deactivated ( DeactivateUser $ event ) { /** @var UserDeactivatedType $type */ $ type = $ this -> notificationManager -> driver ( UserDeactivatedType :: IDENTIFIER ) ; $ notifier = $ type -> getNotifier ( ) ; if ( method_exists ( $ notifier , 'notify' ) ) { $ subscription = $ type -> getSubscription ( $ event ) ; $ users = $ notifier -> getUsersToNotify ( $ subscription , $ event ) ; $ notification = new UserDeactivatedNotification ( $ event ) ; $ notifier -> notify ( $ users , $ notification ) ; } }
Handle deactivated user events

@param \Concrete\Core\User\Event\DeactivateUser $event
Handle deactivated user events