Issue #2554881 by pfrenssen: Fix documentation for return value of NodeController::addPage()
parent
5b1e246a9e
commit
c72bc9a7a2
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue