• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/builders/eventbuilderfromgetlist.php
  • Класс: BitrixCalendarCoreBuildersEventBuilderFromGetList
  • Вызов: EventBuilderFromGetList::getLocation
protected function getLocation(): ?EventPropertiesLocation
{
	if (is_array($this->fields['LOCATION']) && isset($this->fields['LOCATION']['NEW']))
	{
		$location = new EventPropertiesLocation($this->fields['NEW']);
		if (isset($this->fields['LOCATION']['OLD']))
		{
			$location->setOriginalLocation($this->fields['LOCATION']['OLD']);
		}

		return $location;
	}

	if (is_string($this->fields['LOCATION']))
	{
		return new EventPropertiesLocation($this->fields['LOCATION']);
	}

	return null;
}