$pictureSize = 0,
$ordernumber = null,
$allImages = false,
$realtime = false,
$forceMainImage = false
) { static $articleAlbum;
if ($articleAlbum === null
) { // Now we search for the default product album of the media manager, this album contains the thumbnail configuration.
/** @var Album $articleAlbum */
$articleAlbum =
$this->
getMediaRepository() ->
getAlbumWithSettingsQuery(-1
) ->
getOneOrNullResult();
} // First we convert the passed product id into an integer to prevent sql injections
$productId =
(int) $sArticleID;
Shopware()->
Events()->
notify( 'Shopware_Modules_Articles_GetArticlePictures_Start',
['subject' =>
$this, 'id' =>
$productId] );