getRequest(); $user = $request->getUser(); $query = new PhabricatorNotificationQuery(); $query->setUserPHID($user->getPHID()); $query->setLimit(15); $stories = $query->execute(); $builder = new PhabricatorNotificationBuilder($stories); $notifications_view = $builder->buildView(); $json = array( "content" => $stories ? $notifications_view->render() : "You currently have no notifications", ); return id(new AphrontAjaxResponse())->setContent($json); } }