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. * Displays add content links for available content types.
* *
* Redirects to node/add/[type] if only one content type is available. * 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, * 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 * 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 * will return a RedirectResponse to the node add page for that one node
* at all. * type.
*
* @see node_menu()
*/ */
public function addPage() { public function addPage() {
$content = array(); $content = array();