Commit 286b19cd authored by Michael R Lupi's avatar Michael R Lupi
Browse files

Replaces deprecated call to EntityManager() with EntityTypeManager()

parent 492c0134
...@@ -58,7 +58,7 @@ trait TuftsAlertTrait { ...@@ -58,7 +58,7 @@ trait TuftsAlertTrait {
// Loop through the list of active alerts and see if any are assigned to the current path's patterns // Loop through the list of active alerts and see if any are assigned to the current path's patterns
foreach($this->nids as $nid) { foreach($this->nids as $nid) {
// Get a node storage object. // Get a node storage object.
$node_storage = \Drupal::entityManager()->getStorage('node'); $node_storage = \Drupal::entityTypeManager()->getStorage('node');
// Load the node. // Load the node.
$alert = $node_storage->load($nid); $alert = $node_storage->load($nid);
// if current path is excluded, take no further action // if current path is excluded, take no further action
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment