• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/publicaction/utils.php
  • Класс: BitrixLandingPublicActionUtils
  • Вызов: Utils::getCatalogSection
static function getCatalogSection($sectionId)
{
	$response = new PublicActionResult();

	$element = self::getCatalogEntity(
		$sectionId,
		self::TYPE_CATALOG_SECTION
	);

	if ($element)
	{
		$response->setResult($element);
	}
	else
	{
		$response->setError(new Error());
	}

	return $response;
}