From 3b7ad4a92c9cd70b86f6a8920f657082eb7544e7 Mon Sep 17 00:00:00 2001 From: Lauri Eskola <lauri.eskola@acquia.com> Date: Sun, 20 Aug 2023 23:36:53 +0300 Subject: [PATCH] Issue #3381660 by chesn0k: Documentation problem with node_is_page (cherry picked from commit 2e6361778de23e09aeb678b6135adb4c23ecb9b5) --- core/modules/node/node.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/node/node.module b/core/modules/node/node.module index 8e11f08efaa3..a1160fa29d66 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -399,8 +399,8 @@ function node_revision_delete($revision_id) { * @param \Drupal\node\NodeInterface $node * A node entity. * - * @return int|false - * The ID of the node if this is a full page view, otherwise FALSE. + * @return bool + * TRUE if this is a full page view, otherwise FALSE. */ function node_is_page(NodeInterface $node) { $route_match = \Drupal::routeMatch(); -- GitLab