Mercurial > hg > cmmr2012-drupal-site
diff core/modules/views_ui/src/Controller/ViewsUIController.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/core/modules/views_ui/src/Controller/ViewsUIController.php Thu Feb 28 13:11:55 2019 +0000 +++ b/core/modules/views_ui/src/Controller/ViewsUIController.php Thu May 09 15:34:47 2019 +0100 @@ -54,7 +54,7 @@ * The Views fields report page. */ public function reportFields() { - $views = $this->entityManager()->getStorage('view')->loadMultiple(); + $views = $this->entityTypeManager()->getStorage('view')->loadMultiple(); // Fetch all fieldapi fields which are used in views // Therefore search in all views, displays and handler-types. @@ -160,7 +160,7 @@ // If the request is via AJAX, return the rendered list as JSON. if ($request->request->get('js')) { - $list = $this->entityManager()->getListBuilder('view')->render(); + $list = $this->entityTypeManager()->getListBuilder('view')->render(); $response = new AjaxResponse(); $response->addCommand(new ReplaceCommand('#views-entity-list', $list)); return $response; @@ -183,7 +183,7 @@ $matches = []; $string = $request->query->get('q'); // Get matches from default views. - $views = $this->entityManager()->getStorage('view')->loadMultiple(); + $views = $this->entityTypeManager()->getStorage('view')->loadMultiple(); // Keep track of previously processed tags so they can be skipped. $tags = []; foreach ($views as $view) {