Property | Type | Description | |
---|---|---|---|
$mediaManager | Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface | ||
$requestAnalyzer | Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface | ||
$searchImageFormat | string | The format of the image, which will be returned in the search. |
Method | Description | |
---|---|---|
__construct ( Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface $mediaManager, Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface $requestAnalyzer = null, $searchImageFormat ) | ||
getSubscribedEvents ( ) : array | Returns the events this subscriber has subscribed. | |
handlePreIndex ( Massive\Bundle\SearchBundle\Search\Event\PreIndexEvent $e ) | Adds the image to the search document. |
Method | Description | |
---|---|---|
getImageUrl ( $data, $locale ) | Returns the url for the image. |
public __construct ( Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface $mediaManager, Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface $requestAnalyzer = null, $searchImageFormat ) | ||
$mediaManager | Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface | |
$requestAnalyzer | Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface | |
$searchImageFormat |
public static getSubscribedEvents ( ) : array | ||
return | array |
public handlePreIndex ( Massive\Bundle\SearchBundle\Search\Event\PreIndexEvent $e ) | ||
$e | Massive\Bundle\SearchBundle\Search\Event\PreIndexEvent |
protected MediaManagerInterface,Sulu\Bundle\MediaBundle\Media\Manager $mediaManager | ||
return | Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface |
protected RequestAnalyzerInterface,Sulu\Component\Webspace\Analyzer $requestAnalyzer | ||
return | Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface |
protected string $searchImageFormat | ||
return | string |