Issue #2014049 by kgoel | DmitryDrozdik: Replace drupal_container() with Drupal::service() in the views_ui() module.
parent
bfcdcd4005
commit
5cfd21bb87
|
@ -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]);
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue