Loading modules/social_features/social_landing_page/social_landing_page.module +5 −7 Changes for modules/social_features/social_landing_page/social_landing_page.module: 5 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -366,18 +366,16 @@ function social_landing_page_theme_suggestions_page_alter(array &$suggestions, a // Get the status code. $status_code = $exception->getStatusCode(); if ($status_code == 404) { // Get current node. /** @var \Drupal\node\NodeInterface $node */ $node = \Drupal::routeMatch()->getParameter('node'); if (!is_object($node)) { $node = \Drupal::service('entity_type.manager') ->getStorage('node') ->load($node); } // Overrides template for 404 page only if target node has a landing page // type. if ($node instanceof NodeInterface && $node->getType() == 'landing_page') { if ( $node instanceof NodeInterface && $node->getType() === 'landing_page' ) { $suggestions[] = 'page__node__landing_page'; } } Loading Loading
modules/social_features/social_landing_page/social_landing_page.module +5 −7 Changes for modules/social_features/social_landing_page/social_landing_page.module: 5 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -366,18 +366,16 @@ function social_landing_page_theme_suggestions_page_alter(array &$suggestions, a // Get the status code. $status_code = $exception->getStatusCode(); if ($status_code == 404) { // Get current node. /** @var \Drupal\node\NodeInterface $node */ $node = \Drupal::routeMatch()->getParameter('node'); if (!is_object($node)) { $node = \Drupal::service('entity_type.manager') ->getStorage('node') ->load($node); } // Overrides template for 404 page only if target node has a landing page // type. if ($node instanceof NodeInterface && $node->getType() == 'landing_page') { if ( $node instanceof NodeInterface && $node->getType() === 'landing_page' ) { $suggestions[] = 'page__node__landing_page'; } } Loading