diff --git a/uw_cfg_common.install b/uw_cfg_common.install index 596f35caf1c98e95caf4a255d4ea98207ec47c3a..0732f1bfc5bfd7552a571d7615e663d48c0d0c0f 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');