• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/component/baseufcomponent.php
  • Класс: BitrixMainComponentBaseUfComponent
  • Вызов: BaseUfComponent::isPossibleMediaType
protected function isPossibleMediaType(): bool
{
	static $mediaTypes = null;
	if($mediaTypes === null)
	{
		$mediaTypes = $this->getMediaTypes();
	}
	return in_array($this->getMediaType(), $mediaTypes, true);
}