Update to Drupal 8.0.0 beta 14. For more information, see https://drupal.org/node/2544542
This commit is contained in:
parent
3b2511d96d
commit
81ccda77eb
2155 changed files with 54307 additions and 46870 deletions
|
@ -381,9 +381,7 @@ EOD;
|
|||
protected function installConfig(array $modules) {
|
||||
foreach ($modules as $module) {
|
||||
if (!$this->container->get('module_handler')->moduleExists($module)) {
|
||||
throw new \RuntimeException(format_string("'@module' module is not enabled.", array(
|
||||
'@module' => $module,
|
||||
)));
|
||||
throw new \RuntimeException("'$module' module is not enabled");
|
||||
}
|
||||
\Drupal::service('config.installer')->installDefaultConfig('module', $module);
|
||||
}
|
||||
|
@ -411,18 +409,13 @@ EOD;
|
|||
// behavior and non-reproducible test failures, we only allow the schema of
|
||||
// explicitly loaded/enabled modules to be installed.
|
||||
if (!$this->container->get('module_handler')->moduleExists($module)) {
|
||||
throw new \RuntimeException(format_string("'@module' module is not enabled.", array(
|
||||
'@module' => $module,
|
||||
)));
|
||||
throw new \RuntimeException("'$module' module is not enabled");
|
||||
}
|
||||
$tables = (array) $tables;
|
||||
foreach ($tables as $table) {
|
||||
$schema = drupal_get_module_schema($module, $table);
|
||||
if (empty($schema)) {
|
||||
throw new \RuntimeException(format_string("Unknown '@table' table schema in '@module' module.", array(
|
||||
'@module' => $module,
|
||||
'@table' => $table,
|
||||
)));
|
||||
throw new \RuntimeException("Unknown '$table' table schema in '$module' module.");
|
||||
}
|
||||
$this->container->get('database')->schema()->createTable($table, $schema);
|
||||
}
|
||||
|
|
Reference in a new issue