• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/infrastructure/service/disputedareaservice/dispute.php
  • Класс: BitrixLocationInfrastructureServiceDisputedAreaServiceDispute
  • Вызов: Dispute::getInfo
protected function getInfo(): array;

/**
 * @param LocationFieldCollection $fieldCollection
 * @param int $type
 * @param $value
 */
private function adjustLocationField(EntityLocationFieldCollection $fieldCollection, int $type, $value)
{
	$item = $fieldCollection->getItemByType($type);
	if ($item)
	{
		$item->setValue($value);
	}
	else
	{
		$fieldCollection->addItem(new EntityLocationField($type, $value));
	}
}