Entity::isSchemeSupportEntity

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Entity
  4. isSchemeSupportEntity
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/webform/entity.php
  • Класс: Bitrix\Crm\WebForm\Entity
  • Вызов: Entity::isSchemeSupportEntity
static function isSchemeSupportEntity(int $schemeId, int $entityTypeId): bool
{
	$scheme = Entity::getSchemes((int) $schemeId);
	$entityName = \CCrmOwnerType::ResolveName((int) $entityTypeId);

	return (
		$entityName && $scheme
		&& in_array($entityName, $scheme['ENTITIES'], true));
}

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