• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/builders/eventbuilderfromarray.php
  • Класс: BitrixCalendarCoreBuildersEventBuilderFromArray
  • Вызов: EventBuilderFromArray::getSection
protected function getSection(): Section
{
	$sectionId = $this->fields['SECTION_ID'] ??
		(is_array($this->fields['SECTIONS'])
			? (int)$this->fields['SECTIONS'][0]
			: null
		);

	if ($sectionId)
	{
		return (new BitrixCalendarCoreMappersSection())->getMap([
			'=ID' => $sectionId
		])->fetch();
	}

	throw new BuilderException('it is impossible to find the section');
}