Form::getFormType

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Form
  4. getFormType
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/controller/form.php
  • Класс: Bitrix\Crm\Controller\Form
  • Вызов: Form::getFormType
static function getFormType(WebForm\Form $form): string
{
	if ($form->isWhatsApp())
	{
		return Crm\SiteButton\Manager::ENUM_TYPE_WHATSAPP;
	}

	// The whatsapp form is also a callback form, the order is important
	if ($form->isCallback())
	{
		return Crm\SiteButton\Manager::ENUM_TYPE_CALLBACK;
	}

	return Crm\SiteButton\Manager::ENUM_TYPE_CRM_FORM;
}

Добавить комментарий