You are here

public function Fallback::getDestinationMediaTypeSourceFieldLabel in Media Migration 8

Overrides MediaDealerBase::getDestinationMediaTypeSourceFieldLabel

File

src/Plugin/media_migration/file/Fallback.php, line 71

Class

Fallback
General plugin for any kind of file.

Namespace

Drupal\media_migration\Plugin\media_migration\file

Code

public function getDestinationMediaTypeSourceFieldLabel() {
  switch ($this
    ->getDestinationMediaSourcePluginId()) {
    case 'audio_file':
      return 'Audio file';
    case 'video_file':
      return 'Video file';
  }
  return parent::getDestinationMediaTypeSourceFieldLabel();
}