Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Digiserve Public
Tufts Alerts
Commits
286b19cd
Commit
286b19cd
authored
Jan 04, 2021
by
Michael R Lupi
Browse files
Replaces deprecated call to EntityManager() with EntityTypeManager()
parent
492c0134
Changes
1
Show whitespace changes
Inline
Side-by-side
src/TuftsAlertTrait.php
View file @
286b19cd
...
...
@@ -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
foreach
(
$this
->
nids
as
$nid
)
{
// Get a node storage object.
$node_storage
=
\
Drupal
::
entityManager
()
->
getStorage
(
'node'
);
$node_storage
=
\
Drupal
::
entity
Type
Manager
()
->
getStorage
(
'node'
);
// Load the node.
$alert
=
$node_storage
->
load
(
$nid
);
// if current path is excluded, take no further action
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment