You are here

public function MediaDealerBase::getDestinationMediaTypeLabel in Media Migration 8

1 call to MediaDealerBase::getDestinationMediaTypeLabel()
MediaDealerBase::getMediaSourceFieldInstance in src/MediaDealerBase.php
Returns a media source field instance.
3 methods override MediaDealerBase::getDestinationMediaTypeLabel()
Audio::getDestinationMediaTypeLabel in src/Plugin/media_migration/file_entity/Audio.php
RemoteVideoBase::getDestinationMediaTypeLabel in src/Plugin/media_migration/file_entity/RemoteVideoBase.php
Video::getDestinationMediaTypeLabel in src/Plugin/media_migration/file_entity/Video.php

File

src/MediaDealerBase.php, line 104

Class

MediaDealerBase
Base implementation of media dealer plugins.

Namespace

Drupal\media_migration

Code

public function getDestinationMediaTypeLabel() {
  return implode(' ', array_filter([
    $this
      ->getDestinationMediaTypeSourceFieldLabel(),
    $this->configuration['scheme'] === 'public' ? NULL : "({$this->configuration['scheme']})",
  ]));
}