method public

BFile::getContentType()

Класс: \Bitrix\Main\Engine\Response\BFile

Сигнатура

public getContentType() : string

Возвращаемое значение

string

Как применяется в BFile

BFile::getContentType() — метод класса \Bitrix\Main\Engine\Response\BFile модуля «Главный модуль».

Метод объекта: сначала нужен экземпляр BFile.

use Bitrix\Main\Engine\Response\BFile;

/** @var BFile $object */
$result = $object->getContentType();
// $result: string

Другие методы BFile

getContentType() есть и у других классов модуля «Главный модуль»: File, File, HttpClient, HttpHeaders, ResizedImage.

Исходный файл: source/main/lib/engine/response/bfile.php:80

Что будем искать? Например,Продвижение