• Модуль: biconnector
  • Путь к файлу: ~/bitrix/modules/biconnector/lib/manager.php
  • Класс: BitrixBIConnectorManager
  • Вызов: Manager::getDashboardsForPlacement
private function getDashboardsForPlacement(string $placementCode): array
{
	$items = [];
	global $USER;
	if (!$USER->canDoOperation('biconnector_key_view'))
	{
		return $items;
	}
	if (!BitrixMainLoader::includeModule('rest'))
	{
		return $items;
	}

	$handlerList = BitrixRestPlacementTable::getHandlersList($placementCode);

	foreach ($handlerList as $handlerData)
	{
		$items[] = [
			'id' => $handlerData['APP_ID'],
			'url' => '/biconnector/placement.php?id=' . $handlerData['ID'],//'/marketplace/app/'.$handlerData['APP_ID'].'/',
			'title' => !empty($handlerData['TITLE']) ? $handlerData['TITLE'] : $handlerData['APP_NAME'],
		];
	}

	return $items;
}