Issue #2554881 by pfrenssen: Fix documentation for return value of NodeController::addPage()

8.0.x
webchick 2015-08-28 23:09:00 -07:00
parent 5b1e246a9e
commit c72bc9a7a2
1 changed files with 3 additions and 6 deletions

View File

@ -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();