PKPNotificationOperationManager::formatToInPlaceNotification PHP Method

formatToInPlaceNotification() public method

In place notification data formating.
public formatToInPlaceNotification ( $request, $notifications ) : array
$request PKPRequest
$notifications array
return array
    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;
    }