public function formatToInPlaceNotification($request, $notifications)
{
$formattedNotificationsData = null;
if (!empty($notifications)) {
$templateMgr = TemplateManager::getManager($request);
foreach ((array) $notifications as $notification) {
$formattedNotificationsData[$notification->getLevel()][$notification->getId()] = $this->formatNotification($request, $notification, 'controllers/notification/inPlaceNotificationContent.tpl');
}
}
return $formattedNotificationsData;
}