Fallback.php in Media Migration 8
File
src/Plugin/media_migration/file_entity/Fallback.php
View source
<?php
namespace Drupal\media_migration\Plugin\media_migration\file_entity;
class Fallback extends FileBase {
public function getDestinationMediaSourcePluginId() {
return 'file';
}
public function getDestinationMediaTypeIdBase() {
return $this->configuration['type'];
}
public function getDestinationMediaSourceFieldName() {
return implode('_', array_filter([
'field',
'media',
$this
->getDestinationMediaTypeIdBase(),
$this->configuration['scheme'] === 'public' ? NULL : $this->configuration['scheme'],
]));
}
}
Classes
Name |
Description |
Fallback |
Fallback plugin for unknown (custom) file entity types. |