*
* @Route("/export/{category}.{format}", name="export_entries", requirements={
* "format": "epub|mobi|pdf|json|xml|txt|csv",
- * "category": "all|unread|starred|archive|tag_entries|untagged|search"
+ * "category": "all|unread|starred|archive|tag_entries|untagged|search|with_annotations"
* })
*
* @return \Symfony\Component\HttpFoundation\Response
->getResult();
$title = 'Search ' . $searchTerm;
+ } elseif ('with_annotations' === $category) {
+ $entries = $repository->getBuilderForAnnotationsByUser(
+ $this->getUser()->getId()
+ )->getQuery()
+ ->getResult();
+
+ $title = 'With annotations';
} else {
$entries = $repository
->$methodBuilder($this->getUser()->getId())