/**
  * Gets the result from the query
  * @param \ride\web\cms\orm\ContentProperties $contentProperties
  * @param \ride\web\cms\orm\ContentService $contentService
  * @param \ride\library\orm\query\ModelQuery $query
  * @return array Array with Content objects
  */
 private function getResult(ContentProperties $contentProperties, ContentService $contentService, ModelQuery $query)
 {
     $result = $query->query();
     if (!$result) {
         return $result;
     }
     $node = $this->properties->getNode();
     $contentMapper = $contentProperties->getContentMapper();
     $titleFormat = $contentProperties->getContentTitleFormat();
     $teaserFormat = $contentProperties->getContentTeaserFormat();
     $imageFormat = $contentProperties->getContentImageFormat();
     $dateFormat = $contentProperties->getContentDateFormat();
     return $contentService->getContentForEntries($this->model, $result, $node->getRootNodeId(), $this->locale, $contentMapper, $titleFormat, $teaserFormat, $imageFormat, $dateFormat);
 }