diff --git a/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php b/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php index beaee0a1f73..7504ff6cbd1 100644 --- a/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php +++ b/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php @@ -545,7 +545,7 @@ class ViewUI implements ViewStorageInterface { // be in GET. Copy stuff but remove ajax-framework specific keys. // If we're clicking on links in a preview, though, we could actually // still have some in $_GET, so we use $_REQUEST to ensure we get it all. - $exposed_input = drupal_container()->get('request')->request->all(); + $exposed_input = \Drupal::request()->request->all(); foreach (array('view_name', 'view_display_id', 'view_args', 'view_path', 'view_dom_id', 'pager_element', 'view_base_path', 'ajax_html_ids', 'ajax_page_state', 'form_id', 'form_build_id', 'form_token') as $key) { if (isset($exposed_input[$key])) { unset($exposed_input[$key]); diff --git a/core/modules/views_ui/views_ui.module b/core/modules/views_ui/views_ui.module index 343627e700f..98ca5892dee 100644 --- a/core/modules/views_ui/views_ui.module +++ b/core/modules/views_ui/views_ui.module @@ -436,7 +436,7 @@ function views_ui_views_analyze(ViewExecutable $view) { continue; } if ($display->hasPath() && $path = $display->getOption('path')) { - $normal_path = drupal_container()->get('path.alias_manager.cached')->getSystemPath($path); + $normal_path = Drupal::service('path.alias_manager.cached')->getSystemPath($path); if ($path != $normal_path) { $ret[] = Analyzer::formatMessage(t('You have configured display %display with a path which is an path alias as well. This might lead to unwanted effects so better use an internal path.', array('%display' => $display->display['display_title'])), 'warning'); }