Свойство | 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. |
Méthode | 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. |
Méthode | 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 | ||
Résultat | 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 | ||
Résultat | Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface |
protected RequestAnalyzerInterface,Sulu\Component\Webspace\Analyzer $requestAnalyzer | ||
Résultat | Sulu\Component\Webspace\Analyzer\RequestAnalyzerInterface |
protected string $searchImageFormat | ||
Résultat | string |