materio-d9/web/modules/dev/migrate_booster
Bachir Soussi Chiadmi 1f07e66fe6 upgraded core, fixed customs modules 2022-02-15 11:22:01 +01:00
..
config/install migration is ok again (remains probleme of ram consuming > 4Go for users 2020-11-17 11:23:03 +01:00
src migration is ok again (remains probleme of ram consuming > 4Go for users 2020-11-17 11:23:03 +01:00
README.md migration is ok again (remains probleme of ram consuming > 4Go for users 2020-11-17 11:23:03 +01:00
drush.services.yml migration is ok again (remains probleme of ram consuming > 4Go for users 2020-11-17 11:23:03 +01:00
migrate_booster.drush.inc migration is ok again (remains probleme of ram consuming > 4Go for users 2020-11-17 11:23:03 +01:00
migrate_booster.info.yml upgraded core, fixed customs modules 2022-02-15 11:22:01 +01:00
migrate_booster.module migration is ok again (remains probleme of ram consuming > 4Go for users 2020-11-17 11:23:03 +01:00
migrate_booster.services.yml migration is ok again (remains probleme of ram consuming > 4Go for users 2020-11-17 11:23:03 +01:00

README.md

Copied from https://www.drupal.org/sandbox/onkeltem/2828817 and added the patch from https://www.drupal.org/project/2828817/issues/2919993

About

On Drupal 7 we could disable hooks while running migrations:

https://www.drupal.org/node/2136601

This module adds a similar feature. You can disable hooks in settings.php or by editing configuratoin object migrate_booster.settings.

There are two ways to disable hooks:

  1. Disable specific hooks and modules:
$config['migrate_booster.settings']['hooks'] = [
  # Entity insert
  'entity_insert' => [
    'workbench_moderation',
    'pathauto',
    'xmlsitemap',
  ],
  # Entity presave
  'entity_presave' => [
    'xmlsitemap',
  ],
  # Entity predelete
  'entity_predelete' => [
    'flag',
  ],
];
  1. Disable all hooks of specific modules:
$config['migrate_booster.settings']['modules'] = [
  'workbench_moderation',
  'pathauto',
  'xmlsitemap',
];