Admin/ArticleJsConfig.php
private function getTitle($type)
    {
        if (!array_key_exists($type, $this->typeConfiguration)) {
            return ucfirst($type);
        }

        return $this->typeConfiguration[$type]['translation_key'];
    }
private function getTitle($type)
    {
        if (!array_key_exists($type, $this->typeConfiguration)) {
            return ucfirst($type);
        }

        return $this->typeConfiguration[$type]['translation_key'];
    }
private function getTitle ( $ type ) { if ( ! array_key_exists ( $ type , $ this -> typeConfiguration ) ) { return ucfirst ( $ type ) ; } return $ this -> typeConfiguration [ $ type ] [ 'translation_key' ] ; }
Returns title for given type.

@param string $type

@return string
Returns title for given type .