migrate_drupal.post_update.php

Same filename and directory in other branches
  1. 10 core/modules/migrate_drupal/migrate_drupal.post_update.php
  2. 11.x core/modules/migrate_drupal/migrate_drupal.post_update.php
  3. 9 core/modules/migrate_drupal/migrate_drupal.post_update.php
  4. 8.9.x core/modules/migrate_drupal/migrate_drupal.post_update.php

Post update functions for Migrate Drupal.

File

core/modules/migrate_drupal/migrate_drupal.post_update.php

View source
<?php


/**
 * @file
 * Post update functions for Migrate Drupal.
 */


/**
 * Uninstall Migrate Drupal if installed.
 */
function migrate_drupal_post_update_migrate_drupal_uninstall() : void {
  if (\Drupal::moduleHandler()->moduleExists('migrate_drupal')) {
    \Drupal::service('module_installer')->uninstall([
      'migrate_drupal',
    ], FALSE);
  }
}

Functions

Title Deprecated Summary
migrate_drupal_post_update_migrate_drupal_uninstall Uninstall Migrate Drupal if installed.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.