DummyDestination.php in Drupal 10
File
core/modules/migrate/tests/modules/migrate_events_test/src/Plugin/migrate/destination/DummyDestination.php
View source
<?php
namespace Drupal\migrate_events_test\Plugin\migrate\destination;
use Drupal\migrate\Plugin\migrate\destination\DestinationBase;
use Drupal\migrate\Row;
class DummyDestination extends DestinationBase {
public function getIds() {
$ids['value']['type'] = 'string';
return $ids;
}
public function fields() {
return [
'value' => 'Dummy value',
];
}
public function import(Row $row, array $old_destination_id_values = []) {
return [
'value' => $row
->getDestinationProperty('value'),
];
}
}
Classes
Name |
Description |
DummyDestination |
Plugin annotation
@MigrateDestination(
id = "dummy",
requirements_met = true
) |