Commit 5cfd21bb authored by webchick's avatar webchick

Issue #2014049 by kgoel | DmitryDrozdik: Replace drupal_container() with...

Issue #2014049 by kgoel | DmitryDrozdik: Replace drupal_container() with Drupal::service() in the views_ui() module.
parent bfcdcd40
......@@ -545,7 +545,7 @@ public function renderPreview($display_id, $args = array()) {
// 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]);
......
......@@ -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');
}
......
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