From 595ecce09cf9242e44561ae3867e1188890e6727 Mon Sep 17 00:00:00 2001 From: ebremner <ebremner@uwaterloo.ca> Date: Tue, 13 Jul 2021 17:16:26 -0400 Subject: [PATCH] ISTWCMS-4939: coding standards --- uw_cfg_common.install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uw_cfg_common.install b/uw_cfg_common.install index 596f35ca..0732f1bf 100644 --- a/uw_cfg_common.install +++ b/uw_cfg_common.install @@ -254,7 +254,7 @@ function uw_cfg_common_update_8101() { ]; // Load all the nodes. - $nodes = \Drupal\node\Entity\Node::loadMultiple(); + $nodes = Node::loadMultiple(); // Step through each node and set the default setting // to 3 on listing blocks. @@ -318,7 +318,7 @@ function uw_cfg_common_update_8101() { $save_revision_flag = FALSE; // Load the revision node. - $revision_node = \Drupal::entityManager()->getStorage('node')->loadRevision($vid); + $revision_node = \Drupal::service('entity_type.manager')->getStorage('node')->loadRevision($vid); // Comments from here down are the same as above. $layout = $revision_node->get('layout_builder__layout'); -- GitLab