• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/entity/address.php
  • Класс: BitrixLocationEntityAddress
  • Вызов: Address::addLink
public function addLink(string $entityId, string $entityType): void
{
	if($entityId === '')
	{
		throw new ArgumentNullException('entityId');
	}

	if($entityType === '')
	{
		throw new ArgumentNullException('entityType');
	}

	$this->linkCollection->addItem(
		new AddressLink($entityId, $entityType)
	);
}