migrate_drupal.install

Same filename in other branches
  1. 9 core/modules/migrate_drupal/migrate_drupal.install
  2. 10 core/modules/migrate_drupal/migrate_drupal.install
  3. 11.x core/modules/migrate_drupal/migrate_drupal.install

Contains install and update functions for Migrate Drupal

File

core/modules/migrate_drupal/migrate_drupal.install

View source
<?php


/**
 * @file
 * Contains install and update functions for Migrate Drupal
 */

/**
 * Creates migrate_drupal.settings config object.
 */
function migrate_drupal_update_8501() {
    \Drupal::configFactory()->getEditable('migrate_drupal.settings')
        ->set('enforce_source_module_tags', [
        'Drupal 6',
        'Drupal 7',
    ])
        ->save();
}

/**
 * Sets the follow-up migration tags.
 */
function migrate_drupal_update_8502() {
    \Drupal::configFactory()->getEditable('migrate_drupal.settings')
        ->set('follow_up_migration_tags', [
        'Follow-up migration',
    ])
        ->save();
}

/**
 * Install migrate_drupal_multilingual since migrate_drupal is installed.
 */
function migrate_drupal_update_8601() {
    \Drupal::service('module_installer')->install([
        'migrate_drupal_multilingual',
    ]);
}

Functions

Title Deprecated Summary
migrate_drupal_update_8501 Creates migrate_drupal.settings config object.
migrate_drupal_update_8502 Sets the follow-up migration tags.
migrate_drupal_update_8601 Install migrate_drupal_multilingual since migrate_drupal is installed.

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