parent
1e78139333
commit
1207df285f
|
@ -12,7 +12,7 @@ use Drupal\custom\Entity\Node\Post;
|
|||
*/
|
||||
function opdavies_preprocess_page(array &$variables): void {
|
||||
/** @var \Drupal\custom\Entity\Node\Post $node */
|
||||
if (!$node = $variables['node']) {
|
||||
if (!$node = $variables['node'] ?? NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue