remove createPluginEntityFromPlugin in WordPressMigrationGenerator

Created on 30 September 2023, 12 months ago

Problem/Motivation

When looking into problem of migration configuration entity ( πŸ› Undefined array key "migration" in findMigrationDependencies() Active , found it appears also we should remove createPluginEntityFromPlugin in WordPressMigrationGenerator. There is now a same function in migrate_plus: Migration.php (L 84)

our module does not have -- not sure if matters:
$plugin_definition = $migration_plugin->getPluginDefinition();

changes WordPressMigrationGenerator.php (7 usages found)
127 $migration = static::createEntityFromPlugin('wordpress_authors', $this->authorID);
139 $migration = static::createEntityFromPlugin('wordpress_attachments', $this->attachmentID);
149 $migration = static::createEntityFromPlugin('wordpress_tags', $this->tagsID);
161 $migration = static::createEntityFromPlugin('wordpress_categories', $this->categoriesID);
192 $migration = static::createEntityFromPlugin('wordpress_content', $content_id);
251 $migration = static::createEntityFromPlugin('wordpress_comment', $id);
315 protected static function createEntityFromPlugin($plugin_id, $new_plugin_id) {

Remaining tasks

- Remove and replace with migrateplus
- If the function createEntityFromPlugin is not available throw an exception

User interface changes

None

API changes

None

Data model changes

None

πŸ“Œ Task
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States HongPong Philadelphia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024