src/Sulu/Bundle/SecurityBundle/Controller/ResettingController.php
private function getEmail(UserInterface $user)
    {
        if (null !== $user->getEmail()) {
            return $user->getEmail();
        }

        return $this->container->getParameter('sulu_admin.email');
    }
private function getEmail(UserInterface $user)
    {
        if (null !== $user->getEmail()) {
            return $user->getEmail();
        }

        return $this->container->getParameter('sulu_admin.email');
    }
private function getEmail ( UserInterface $ user ) { if ( null !== $ user -> getEmail ( ) ) { return $ user -> getEmail ( ) ; } return $ this -> container -> getParameter ( 'sulu_admin.email' ) ; }
Returns the users email or as a fallback the installation-email-adress.

@param UserInterface $user

@return string
Returns the users email or as a fallback the installation - email - adress .