Commit c72bc9a7 authored by webchick's avatar webchick

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

parent 5b1e246a
......@@ -59,19 +59,16 @@ public static function create(ContainerInterface $container) {
* 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();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment