RedirectSourceQuery.php in Redirect 8
File
src/Plugin/migrate/process/d7/RedirectSourceQuery.php
View source
<?php
namespace Drupal\redirect\Plugin\migrate\process\d7;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;
class RedirectSourceQuery extends ProcessPluginBase {
public function transform($value, MigrateExecutableInterface $migrate_executable, Row $row, $destination_property) {
if (!empty($value)) {
$options = unserialize($value);
if (!empty($options['query'])) {
return serialize($options['query']);
}
}
return NULL;
}
}