GeoFieldFieldSettings.php in Geofield 8
File
src/Plugin/migrate/process/GeoFieldFieldSettings.php
View source
<?php
namespace Drupal\geofield\Plugin\migrate\process;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;
class GeoFieldFieldSettings extends ProcessPluginBase {
public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
if ($row
->getSourceProperty('type') == 'geofield' && isset($value['backend'])) {
$value['backend'] = $value['backend'] != 'default' ? $value['backend'] : 'geofield_backend_default';
}
return $value;
}
}