From 2e6361778de23e09aeb678b6135adb4c23ecb9b5 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 --- 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 a937c03e2128..f47dbb754094 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