concrete/src/Notification/View/UserDeactivatedListView.php
public function getActionDescription()
    {
        $entityManager = $this->getApplication()->make(EntityManagerInterface::class);

        /** @var User $user */
        $user = $entityManager->find(User::class, $this->notification->getUserID());
        $actor = null;

        $actorID = $this->notification->getActorID();
        if ($actorID) {
            /** @var User $actor */
            $actor = $entityManager->find(User::class, $actorID);
        }

        if ($actorID) {
            return t(
                '%s has been manually deactivated by %s',
                $this->getUserLink($user),
                $this->getUserLink($actor));
        }

        return t('%s has been automatically deactivated.', $this->getUserLink($user));
    }
public function getActionDescription()
    {
        $entityManager = $this->getApplication()->make(EntityManagerInterface::class);

        /** @var User $user */
        $user = $entityManager->find(User::class, $this->notification->getUserID());
        $actor = null;

        $actorID = $this->notification->getActorID();
        if ($actorID) {
            /** @var User $actor */
            $actor = $entityManager->find(User::class, $actorID);
        }

        if ($actorID) {
            return t(
                '%s has been manually deactivated by %s',
                $this->getUserLink($user),
                $this->getUserLink($actor));
        }

        return t('%s has been automatically deactivated.', $this->getUserLink($user));
    }
public function getActionDescription ( ) { $ entityManager = $ this -> getApplication ( ) -> make ( EntityManagerInterface :: class ) ; /** @var User $user */ $ user = $ entityManager -> find ( User :: class , $ this -> notification -> getUserID ( ) ) ; $ actor = null ; $ actorID = $ this -> notification -> getActorID ( ) ; if ( $ actorID ) { /** @var User $actor */ $ actor = $ entityManager -> find ( User :: class , $ actorID ) ; } if ( $ actorID ) { return t ( '%s has been manually deactivated by %s' , $ this -> getUserLink ( $ user ) , $ this -> getUserLink ( $ actor ) ) ; } return t ( '%s has been automatically deactivated.' , $ this -> getUserLink ( $ user ) ) ; }
Build the description for this notification

@return string
Build the description for this notification