bundle/Templating/Twig/Runtime/EzPublishRuntime.php
public function getContentTypeName(string $identifier): string
    {
        try {
            $contentType = $this->loadContentType($identifier);

            return $contentType->getName() ?? '';
        } catch (Throwable $t) {
            return '';
        }
    }
public function getContentTypeName(string $identifier): string
    {
        try {
            $contentType = $this->loadContentType($identifier);

            return $contentType->getName() ?? '';
        } catch (Throwable $t) {
            return '';
        }
    }
public function getContentTypeName ( string $ identifier ) : string { try { $ contentType = $ this -> loadContentType ( $ identifier ) ; return $ contentType -> getName ( ) ?? '' ; } catch ( Throwable $ t ) { return '' ; } }
Returns the content type name.
Returns the content type name .