Newer
Older
catch
committed
<?php
namespace Drupal\migrate_drupal\Plugin\migrate\field;
use Drupal\migrate\Plugin\MigrationInterface;
/**
* @MigrateField(
* id = "nodereference",
* core = {6},
* type_map = {
* "nodereference" = "entity_reference",
* },
* source_module = "nodereference",
* destination_module = "core",
catch
committed
* )
*/
class NodeReference extends FieldPluginBase {
/**
* {@inheritdoc}
*/
public function processFieldValues(MigrationInterface $migration, $field_name, $data) {
$process = [
'plugin' => 'sub_process',
catch
committed
'source' => $field_name,
'process' => [
'target_id' => [
'plugin' => 'get',