DummyMediaDealerPlugin.php in Media Migration 8
File
tests/src/Kernel/Plugin/migrate/source/DummyMediaDealerPlugin.php
View source
<?php
namespace Drupal\Tests\media_migration\Kernel\Plugin\migrate\source;
use Drupal\Core\Database\Connection;
use Drupal\Core\Plugin\PluginBase;
use Drupal\media_migration\FileEntityDealerPluginInterface;
use Drupal\migrate\Row;
class DummyMediaDealerPlugin extends PluginBase implements FileEntityDealerPluginInterface {
public function getDestinationMediaTypeId() {
return implode('_', array_filter([
$this
->getDestinationMediaTypeIdBase(),
$this->configuration['scheme'] === 'public' ? NULL : $this->configuration['scheme'],
]));
}
public function getDestinationMediaTypeIdBase() {
return $this->pluginDefinition['destination_media_type_id_base'];
}
public function getDestinationMediaTypeLabel() {
return $this
->getDestinationMediaTypeId();
}
public function getDestinationMediaTypeSourceFieldLabel() {
return $this
->getDestinationMediaTypeId();
}
public function getDestinationMediaSourceFieldName() {
return $this
->getDestinationMediaTypeId();
}
public function getDestinationMediaSourcePluginId() {
return $this->configuration['destination_media_source_plugin_id'];
}
public function alterMediaTypeMigrationDefinition(array &$migration_definition, Connection $connection) : void {
}
public function alterMediaSourceFieldStorageMigrationDefinition(array &$migration_definition, Connection $connection) : void {
}
public function alterMediaSourceFieldInstanceMigrationDefinition(array &$migration_definition, Connection $connection) : void {
}
public function alterMediaSourceFieldWidgetMigrationDefinition(array &$migration_definition, Connection $connection) : void {
}
public function alterMediaFieldFormatterMigrationDefinition(array &$migration_definition, Connection $connection) : void {
}
public function alterMediaEntityMigrationDefinition(array &$migration_definition, Connection $connection) : void {
}
public function prepareMediaTypeRow(Row $row, Connection $connection) : void {
}
public function prepareMediaSourceFieldStorageRow(Row $row, Connection $connection) : void {
}
public function prepareMediaSourceFieldInstanceRow(Row $row, Connection $connection) : void {
}
public function prepareMediaSourceFieldWidgetRow(Row $row, Connection $connection) : void {
}
public function prepareMediaSourceFieldFormatterRow(Row $row, Connection $connection) : void {
}
public function prepareMediaEntityRow(Row $row, Connection $connection) : void {
}
}