From c72bc9a7a26ec86d9335ad520019f4558b395498 Mon Sep 17 00:00:00 2001 From: webchick Date: Fri, 28 Aug 2015 23:09:00 -0700 Subject: [PATCH] Issue #2554881 by pfrenssen: Fix documentation for return value of NodeController::addPage() --- core/modules/node/src/Controller/NodeController.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/core/modules/node/src/Controller/NodeController.php b/core/modules/node/src/Controller/NodeController.php index 8d40d01c7a9e..299d2537d9af 100644 --- a/core/modules/node/src/Controller/NodeController.php +++ b/core/modules/node/src/Controller/NodeController.php @@ -59,19 +59,16 @@ class NodeController extends ControllerBase implements ContainerInjectionInterfa ); } - /** * Displays add content links for available content types. * * Redirects to node/add/[type] if only one content type is available. * - * @return array + * @return array|\Symfony\Component\HttpFoundation\RedirectResponse * A render array for a list of the node types that can be added; however, * if there is only one node type defined for the site, the function - * redirects to the node add page for that one node type and does not return - * at all. - * - * @see node_menu() + * will return a RedirectResponse to the node add page for that one node + * type. */ public function addPage() { $content = array();