• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/tracking/channel/order.php
  • Класс: Bitrix\Crm\Tracking\Channel\Order
  • Вызов: Order::getChannels
public function getChannels()
{
	$collection = parent::getChannels();
	$orderId = $this->getEntities()->getIdByTypeId(\CCrmOwnerType::Order);
	if (!$orderId)
	{
		return $collection;
	}


	$collection->setChannel(new SalesCenter());

	return $collection;
}