You are here

public function Fallback::getDestinationMediaSourceFieldName in Media Migration 8

Same name in this branch
  1. 8 src/Plugin/media_migration/file_entity/Fallback.php \Drupal\media_migration\Plugin\media_migration\file_entity\Fallback::getDestinationMediaSourceFieldName()
  2. 8 src/Plugin/media_migration/file/Fallback.php \Drupal\media_migration\Plugin\media_migration\file\Fallback::getDestinationMediaSourceFieldName()

Overrides MediaDealerBase::getDestinationMediaSourceFieldName

File

src/Plugin/media_migration/file_entity/Fallback.php, line 33

Class

Fallback
Fallback plugin for unknown (custom) file entity types.

Namespace

Drupal\media_migration\Plugin\media_migration\file_entity

Code

public function getDestinationMediaSourceFieldName() {
  return implode('_', array_filter([
    'field',
    'media',
    $this
      ->getDestinationMediaTypeIdBase(),
    $this->configuration['scheme'] === 'public' ? NULL : $this->configuration['scheme'],
  ]));
}