• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/statustable.php
  • Класс: Bitrix\Crm\StatusTable
  • Вызов: StatusTable::parseStageEntityId
static function parseStageEntityId(string $entityId): ?array
{
	if(preg_match('#^TYPE_(\d+)_STAGE$#', $entityId, $matches))
	{
		return [
			'entityTypeId' => (int) $matches[1],
		];
	}

	return null;
}