/** * getThumbUrl * * @param DocumentInterface $document * @param mixed $dimension * @param bool $absolute * * @return string */ public function getThumbUrl(DocumentInterface $document, $dimension, $absolute = false) { return $this->router->generate('erichard_dms_document_preview', array('document' => $document->getSlug(), 'node' => $document->getNode()->getSlug(), 'dimension' => $dimension), $absolute) . '?' . $document->getUpdatedAt()->getTimestamp(); }