• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/entity/address.php
  • Класс: BitrixLocationEntityAddress
  • Вызов: Address::setFieldValue
public function setFieldValue(int $type, string $value): self
{
	if($field = $this->getFieldCollection()->getItemByType($type))
	{
		$field->setValue($value);
	}
	else
	{
		$this->fieldCollection->addItem(
			(new Field($type))
				->setValue($value)
		);
	}

	return $this;
}