Reinstall site content (export/import).

Frederic G. MARAND b47332674b by Michael Bornand: compatibility with Drupal post 8.3.0 6 years ago
src 353fb37143 Issue #1: support larger exports by splitting the dump to chunks. 7 years ago
.gitignore b57721f76a Add Composer integration. 7 years ago
README.md 54bd1f68f3 Added README and documentation about terms hierarchy. 7 years ago
composer.json b47332674b by Michael Bornand: compatibility with Drupal post 8.3.0 6 years ago
reinstall.drush.inc 3de4588645 Fix incorrect type hinting in drush rex command. 7 years ago
reinstall.info.yml 204003e64f Coding standards, type hinting. 7 years ago
reinstall.install 204003e64f Coding standards, type hinting. 7 years ago
reinstall.services.yml 353fb37143 Issue #1: support larger exports by splitting the dump to chunks. 7 years ago

README.md

Reinstall

Usage notes

Support for term hierarchy

This mechanism supports multiple parents on terms. However, it needs the migrations to include its callback, within a process pipeline like:

# In migrate_plus.migration.reinstall_terms_foo
process:
  parent_id:
    -
      plugin: skip_on_empty
      method: process
      source: parent
    -
      # This step is needed to transform the terms parents to usable values.
      # Without it, all terms will be at level 0 in the target vocabulary.
      plugin: callback
      callable:
        - '\Drupal\reinstall\Plugin\migrate\source\ReinstallTermSource'
        - 'getParent'
    -
      plugin: migration
      # Notice the reference to the current migration.
      migration: reinstall_terms_foo
  parent:
    plugin: default_value
    default_value: 0
    source: '@parent_id'