yii\apidoc\helpers\ApiMarkdownLaTeX::translateBlockType PHP Method

translateBlockType() protected method

Since: 2.0.5
protected translateBlockType ( $type )
    protected function translateBlockType($type)
    {
        $key = ucfirst($type) . ':';
        if (isset(ApiMarkdown::$blockTranslations[$key])) {
            $translation = ApiMarkdown::$blockTranslations[$key];
        } else {
            $translation = $key;
        }
        return "{$translation} ";
    }