CCrmProductPropsHelper::isTypeSupportingUrlTemplate

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmProductPropsHelper
  4. isTypeSupportingUrlTemplate
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_productprops_helper.php
  • Класс: \CCrmProductPropsHelper
  • Вызов: CCrmProductPropsHelper::isTypeSupportingUrlTemplate
static function isTypeSupportingUrlTemplate(array $propertyInfo): bool
{
	if (empty($propertyInfo['PROPERTY_TYPE']) || empty($propertyInfo['USER_TYPE']))
	{
		return false;
	}

	$urlTemplateSupportTypeList = static::getTypeListSupportingUrlTemplate();
	$fullType = "{$propertyInfo['PROPERTY_TYPE']}:{$propertyInfo['USER_TYPE']}";

	return in_array($fullType, $urlTemplateSupportTypeList, true);
}

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