Skip to content
Snippets Groups Projects
Commit 595ecce0 authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-4939: coding standards

parent 3fb92dbe
No related branches found
No related tags found
1 merge request!129Feature/istwcms 4939 ebremner listing blocks num items
...@@ -254,7 +254,7 @@ function uw_cfg_common_update_8101() { ...@@ -254,7 +254,7 @@ function uw_cfg_common_update_8101() {
]; ];
// Load all the nodes. // Load all the nodes.
$nodes = \Drupal\node\Entity\Node::loadMultiple(); $nodes = Node::loadMultiple();
// Step through each node and set the default setting // Step through each node and set the default setting
// to 3 on listing blocks. // to 3 on listing blocks.
...@@ -318,7 +318,7 @@ function uw_cfg_common_update_8101() { ...@@ -318,7 +318,7 @@ function uw_cfg_common_update_8101() {
$save_revision_flag = FALSE; $save_revision_flag = FALSE;
// Load the revision node. // 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. // Comments from here down are the same as above.
$layout = $revision_node->get('layout_builder__layout'); $layout = $revision_node->get('layout_builder__layout');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment