Commit 1cbc618c authored by webchick's avatar webchick

Issue #2003576 by jeroen12345, ebeyrent, alexander.ilivanov: Replace...

Issue #2003576 by jeroen12345, ebeyrent, alexander.ilivanov: Replace drupal_container() with Drupal::service() in the config module.
parent 5cfd21bb
......@@ -105,8 +105,8 @@ function config_admin_sync_form(array &$form, array &$form_state, StorageInterfa
*/
function config_admin_import_form($form, &$form_state) {
// Retrieve a list of differences between last known state and active store.
$source_storage = drupal_container()->get('config.storage.staging');
$target_storage = drupal_container()->get('config.storage');
$source_storage = Drupal::service('config.storage.staging');
$target_storage = Drupal::service('config.storage');
$form['actions'] = array('#type' => 'actions');
$form['actions']['submit'] = array(
......
......@@ -110,7 +110,7 @@ function testConfigLocaleUserOverride() {
'preferred_langcode' => 'de',
));
$config_factory = drupal_container()->get('config.factory');
$config_factory = \Drupal::service('config.factory');
$config_factory->enterContext($user_config_context->setAccount($account));
// Should not have to re-initialize the configuration object to get new
// overrides as the new context will have a different uuid.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment