Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / migrate_drupal / migrate_drupal.install
1 <?php
2
3 /**
4  * @file
5  * Contains install and update functions for Migrate Drupal
6  */
7
8 /**
9  * Creates migrate_drupal.settings config object.
10  */
11 function migrate_drupal_update_8501() {
12   \Drupal::configFactory()
13     ->getEditable('migrate_drupal.settings')
14     ->set('enforce_source_module_tags', ['Drupal 6', 'Drupal 7'])
15     ->save();
16 }
17
18 /**
19  * Sets the follow-up migration tags.
20  */
21 function migrate_drupal_update_8502() {
22   \Drupal::configFactory()
23     ->getEditable('migrate_drupal.settings')
24     ->set('follow_up_migration_tags', ['Follow-up migration'])
25     ->save();
26 }
27
28 /**
29  * Install migrate_drupal_multilingual since migrate_drupal is installed.
30  */
31 function migrate_drupal_update_8601() {
32   \Drupal::service('module_installer')->install(['migrate_drupal_multilingual']);
33 }