code: public function getMediaHashForMediaObject(Media $media)
      {
          $identity = $this->identityService->findOneBy([
              'objectIdentifier' => (string) $media->getIdentifier(),
              'objectType' => Media::TYPE,
              'adapterName' => ShopwareAdapter::NAME,
          ]);
  
          if (null === $identity) {
              return '';
          }
  
          $attributes = $this->dataLoader->load('s_media_attributes', $identity->getAdapterIdentifier());
  
          if (empty($attributes)) {
              return '';
          }
  
          foreach ($attributes as $key => $value) {
              if ($key !== 'plenty_connector_hash') {
                  continue;
              }
  
              return $value;
          }
  
          return '';
      }
docs: @param Media $media
  
  @return string