public static function MigrationPluginTool::getAssociativeMigrationProcess in Media Migration 8
Returns the given migration destination process as an associative array.
Parameters
array|string $plugin_process: The plugin process mapping.
Return value
array The plugin process mapping as an associative array.
4 calls to MigrationPluginTool::getAssociativeMigrationProcess()
- MediaWysiwygPluginBase::appendProcessor in src/
MediaWysiwygPluginBase.php - Appends the media wysiwyg migrate processor to a field.
- MigratePluginAlterer::alterFilterFormatMigration in src/
MigratePluginAlterer.php - Maps Drupal 7 media_filter filter plugin to a Drupal 8|9 filter plugin.
- MigratePluginAlterer::getSourceValueOfMigrationProcess in src/
MigratePluginAlterer.php - Gets the value of a process property if it is not dynamically calculated.
- MigratePluginAlterer::mapMigrationProcessValueToMedia in src/
MigratePluginAlterer.php - Maps a migration's property from "file" to "media".
File
- src/
Utility/ MigrationPluginTool.php, line 56
Class
- MigrationPluginTool
- Utility for filtering and manipulating migration plugin definitions.
Namespace
Drupal\media_migration\UtilityCode
public static function getAssociativeMigrationProcess($plugin_process) : array {
if (!is_array($plugin_process)) {
$plugin_process = [
[
'plugin' => 'get',
'source' => $plugin_process,
],
];
}
elseif (array_key_exists('plugin', $plugin_process)) {
$plugin_process = [
$plugin_process,
];
}
return $plugin_process;
}