Newscoop\GimmeBundle\Serializer\Image\ThumbnailUriHandler::serializeToJson PHP Method

serializeToJson() public method

public serializeToJson ( JMS\Serializer\JsonSerializationVisitor $visitor, $item, $type )
$visitor JMS\Serializer\JsonSerializationVisitor
    public function serializeToJson(JsonSerializationVisitor $visitor, $item, $type)
    {
        if ($item->getThumbnailPath()) {
            return $this->linkService->getBaseUrl('/' . $item->getThumbnailPath());
        }
    }