public function getTokenShowSnippetNames(\Gems_Tracker_Token $token)
    {
        $output[] = 'Token\\ShowTrackTokenSnippet';

        if ($token->isCompleted() && $this->currentUser->hasPrivilege('pr.token.answers')) {
            $output[] = 'Tracker_Answers_SingleTokenAnswerModelSnippet';
        } elseif ($this->currentUser->hasPrivilege('pr.project.questions')) {
            $output[] = 'Survey\\SurveyQuestionsSnippet';
        }
        return $output;
    }
public function getTokenShowSnippetNames(\Gems_Tracker_Token $token)
    {
        $output[] = 'Token\\ShowTrackTokenSnippet';

        if ($token->isCompleted() && $this->currentUser->hasPrivilege('pr.token.answers')) {
            $output[] = 'Tracker_Answers_SingleTokenAnswerModelSnippet';
        } elseif ($this->currentUser->hasPrivilege('pr.project.questions')) {
            $output[] = 'Survey\\SurveyQuestionsSnippet';
        }
        return $output;
    }
public function getTokenShowSnippetNames ( \ Gems_Tracker_Token $ token ) { $ output [ ] = 'Token\\ShowTrackTokenSnippet' ; if ( $ token -> isCompleted ( ) && $ this -> currentUser -> hasPrivilege ( 'pr.token.answers' ) ) { $ output [ ] = 'Tracker_Answers_SingleTokenAnswerModelSnippet' ; } elseif ( $ this -> currentUser -> hasPrivilege ( 'pr.project.questions' ) ) { $ output [ ] = 'Survey\\SurveyQuestionsSnippet' ; } return $ output ; }
An array of snippet names for displaying a token

@param \Gems_Tracker_Token $token Allows token status dependent show snippets
@return array of string snippet names
An array of snippet names for displaying a token