drupal-8.migrate-drupal-multilingual-enabled.php

Same filename in other branches
  1. 9 core/modules/migrate_drupal/tests/fixtures/drupal-8.migrate-drupal-multilingual-enabled.php

File

core/modules/migrate_drupal/tests/fixtures/drupal-8.migrate-drupal-multilingual-enabled.php

View source
<?php

// @codingStandardsIgnoreFile
use Drupal\Core\Database\Database;
$connection = Database::getConnection();
// Set the schema version.
$connection->merge('key_value')
    ->fields([
    'value' => 'i:8000;',
    'name' => 'migrate_drupal_multilingual',
    'collection' => 'system.schema',
])
    ->condition('collection', 'system.schema')
    ->condition('name', 'migrate_drupal_multilingual')
    ->execute();
// Update core.extension.
$extensions = $connection->select('config')
    ->fields('config', [
    'data',
])
    ->condition('collection', '')
    ->condition('name', 'core.extension')
    ->execute()
    ->fetchField();
$extensions = unserialize($extensions);
$extensions['module']['migrate_drupal_multilingual'] = 8000;
$connection->update('config')
    ->fields([
    'data' => serialize($extensions),
    'collection' => '',
    'name' => 'core.extension',
])
    ->condition('collection', '')
    ->condition('name', 'core.extension')
    ->execute();

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