Ouzo\ViewPathResolver::getViewPostfix PHP Method

getViewPostfix() private static method

private static getViewPostfix ( $responseType )
    private static function getViewPostfix($responseType)
    {
        $availableViewsMap = array('text/xml' => '.xml.phtml', 'application/json' => '.json.phtml', 'text/json' => '.json.phtml');
        $viewForType = Arrays::getValue($availableViewsMap, $responseType, false);
        if ($viewForType) {
            return $viewForType;
        }
        return Uri::isAjax() ? '.ajax.phtml' : '.phtml';
    }