src/Sulu/Bundle/CategoryBundle/Api/Category.php
private function getUserFullName($user)
    {
        $strReturn = '';
        if ($user && method_exists($user, 'getContact')) {
            $strReturn = $user->getContact()->getFirstName() . ' ' . $user->getContact()->getLastName();
        }

        return $strReturn;
    }
private function getUserFullName($user)
    {
        $strReturn = '';
        if ($user && method_exists($user, 'getContact')) {
            $strReturn = $user->getContact()->getFirstName() . ' ' . $user->getContact()->getLastName();
        }

        return $strReturn;
    }
private function getUserFullName ( $ user ) { $ strReturn = '' ; if ( $ user && method_exists ( $ user , 'getContact' ) ) { $ strReturn = $ user -> getContact ( ) -> getFirstName ( ) . ' ' . $ user -> getContact ( ) -> getLastName ( ) ; } return $ strReturn ; }
Takes a user entity and returns the fullname.

@param $user

@return string
Takes a user entity and returns the fullname .