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

ISTWCMS-4653: coding standards

parent 0b4c3b64
No related branches found
No related tags found
1 merge request!61ISTWCMS-4653: checking for unpublished nodes when getting the menu
...@@ -315,7 +315,7 @@ class UWService implements UWServiceInterface { ...@@ -315,7 +315,7 @@ class UWService implements UWServiceInterface {
$path = $this->pathAliasManager->getPathByAlias('/' . $alias); $path = $this->pathAliasManager->getPathByAlias('/' . $alias);
// Check if it is a node path and if so check if published. // Check if it is a node path and if so check if published.
if(preg_match('/node\/(\d+)/', $path, $matches)) { if (preg_match('/node\/(\d+)/', $path, $matches)) {
// Load in the node based on the path. // Load in the node based on the path.
$node = $this->entityTypeManager->getStorage('node')->load($matches[1]); $node = $this->entityTypeManager->getStorage('node')->load($matches[1]);
......
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