• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/EventHistory/TrackedObject.php
  • Класс: Bitrix\Crm\Service\EventHistory\TrackedObject
  • Вызов: TrackedObject::isCollection
protected function isCollection($value): bool
{
	if ($value instanceof Collection)
	{
		return true;
	}

	if (is_array($value))
	{
		if (empty($value))
		{
			return true;
		}

		$firstElement = array_shift($value);

		return ( ($firstElement instanceof EntityObject) || ($firstElement instanceof Item) );
	}

	return false;
}