• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/sign/form.php
  • Класс: Bitrix\Crm\Integration\Sign\Form
  • Вызов: Form::getDynamicTypeId
private function getDynamicTypeId(): ?int
{
	$schemeId = $this->form->get()['ENTITY_SCHEME'];
	$scheme = Crm\WebForm\Entity::getSchemes($schemeId);
	if (!$scheme || !$scheme['DYNAMIC'])
	{
		return \CCrmOwnerType::Undefined;
	}

	return (int)$scheme['MAIN_ENTITY'];
}