public function MediaWysiwygPluginBase::process in Media Migration 8
Processes the migrations affected by the given field instance row.
This method is responsible for altering those field value process pipelines (by adding the needed migration process plugins) which are migrating the values of the given field instance migration row.
Parameters
array $migrations: The available migration plugin definitions as an array, keyed by their plugin ID.
\Drupal\migrate\Row $row: A field instance migration row.
Return value
array[] The migration definitions, including the required changes.
Overrides MediaWysiwygInterface::process
See also
\Drupal\media_migration\MigratePluginAlterer::addMediaWysiwygProcessor
File
- src/
MediaWysiwygPluginBase.php, line 60
Class
- MediaWysiwygPluginBase
- Base class for media_wysiwyg plugins.
Namespace
Drupal\media_migrationCode
public function process(array $migrations, Row $row) {
$matching_migration_plugin_ids = MigrationPluginTool::getContentEntityMigrations($migrations, $this->configuration['destination_entity_type_id']);
foreach (array_keys($matching_migration_plugin_ids) as $migration_plugin_id) {
$migrations = $this
->appendProcessor($migrations, $migration_plugin_id, $row
->getSourceProperty('field_name'), $this->configuration['source_entity_type_id']);
}
return $migrations;
}