ItemIdentifier::createByItem

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. ItemIdentifier
  4. createByItem
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/itemidentifier.php
  • Класс: Bitrix\Crm\ItemIdentifier
  • Вызов: ItemIdentifier::createByItem
static function createByItem(Item $item): ItemIdentifier
{
	$categoryId = $item->isCategoriesSupported() ? $item->getCategoryId() : null;

	return new static($item->getEntityTypeId(), $item->getId(), $categoryId);
}

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