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

	return $this;
}