Document/Index/ArticleIndexer.php
private function getTypeTranslation($type)
    {
        if (!array_key_exists($type, $this->typeConfiguration)) {
            return ucfirst($type);
        }

        $typeTranslationKey = $this->typeConfiguration[$type]['translation_key'];

        return $this->translator->trans($typeTranslationKey, [], 'backend');
    }
private function getTypeTranslation($type)
    {
        if (!array_key_exists($type, $this->typeConfiguration)) {
            return ucfirst($type);
        }

        $typeTranslationKey = $this->typeConfiguration[$type]['translation_key'];

        return $this->translator->trans($typeTranslationKey, [], 'backend');
    }
private function getTypeTranslation ( $ type ) { if ( ! array_key_exists ( $ type , $ this -> typeConfiguration ) ) { return ucfirst ( $ type ) ; } $ typeTranslationKey = $ this -> typeConfiguration [ $ type ] [ 'translation_key' ] ; return $ this -> translator -> trans ( $ typeTranslationKey , [ ] , 'backend' ) ; }
Returns translation for given article type.

@param string $type

@return string
Returns translation for given article type .