Adapter/ShopwareAdapter/RequestGenerator/Media/MediaRequestGenerator.php
public function generate(Media $media)
    {
        $params = [
            'album' => Album::ALBUM_ARTICLE,
            'file' => $media->getLink(),
            'description' => $media->getAlternateName() ?: $media->getName() ?: $media->getFilename(),
        ];

        if (null !== $media->getMediaCategoryIdentifier()) {
            $params['album'] = $this->dataProvider->getAlbumIdentifierFromMediaObject($media);
        }

        return $params;
    }
public function generate(Media $media)
    {
        $params = [
            'album' => Album::ALBUM_ARTICLE,
            'file' => $media->getLink(),
            'description' => $media->getAlternateName() ?: $media->getName() ?: $media->getFilename(),
        ];

        if (null !== $media->getMediaCategoryIdentifier()) {
            $params['album'] = $this->dataProvider->getAlbumIdentifierFromMediaObject($media);
        }

        return $params;
    }
public function generate ( Media $ media ) { $ params = [ 'album' => Album :: ALBUM_ARTICLE , 'file' => $ media -> getLink ( ) , 'description' => $ media -> getAlternateName ( ) ? : $ media -> getName ( ) ? : $ media -> getFilename ( ) , ] ; if ( null !== $ media -> getMediaCategoryIdentifier ( ) ) { $ params [ 'album' ] = $ this -> dataProvider -> getAlbumIdentifierFromMediaObject ( $ media ) ; } return $ params ; }
{@inheritdoc}
{