Elgg\Application\CacheHandler::getContentType PHP Метод

getContentType() защищенный Метод

Get the content type
protected getContentType ( string $view ) : string | null
$view string The view name
Результат string | null
    protected function getContentType($view)
    {
        $extension = $this->getViewFileType($view);
        if (isset(self::$extensions[$extension])) {
            return self::$extensions[$extension];
        } else {
            return null;
        }
    }