Adapter/ShopwareAdapter/DataProvider/Media/MediaDataProvider.php
public function getAlbumIdentifierFromMediaObject(Media $media)
    {
        $mediaCategoryIdentity = $this->identityService->findOneBy([
            'objectIdentifier' => $media->getMediaCategoryIdentifier(),
            'objectType' => MediaCategory::TYPE,
            'adapterName' => ShopwareAdapter::NAME,
        ]);

        if (null === $mediaCategoryIdentity) {
            throw new NotFoundException('missing media category for adapter');
        }

        return $mediaCategoryIdentity->getAdapterIdentifier();
    }
public function getAlbumIdentifierFromMediaObject(Media $media)
    {
        $mediaCategoryIdentity = $this->identityService->findOneBy([
            'objectIdentifier' => $media->getMediaCategoryIdentifier(),
            'objectType' => MediaCategory::TYPE,
            'adapterName' => ShopwareAdapter::NAME,
        ]);

        if (null === $mediaCategoryIdentity) {
            throw new NotFoundException('missing media category for adapter');
        }

        return $mediaCategoryIdentity->getAdapterIdentifier();
    }
@param Media $media

@return string