Commit 5089f20f authored by webchick's avatar webchick

Issue #2029569 by AjitS, tim.plunkett: Convert node_admin_nodes() to a new-style Controller.

parent 04f662ff
......@@ -15,6 +15,14 @@
*/
class NodeController {
/**
* @todo Remove node_admin_nodes().
*/
public function contentOverview() {
module_load_include('admin.inc', 'node');
return node_admin_nodes();
}
/**
* @todo Remove node_add_page().
*/
......
......@@ -969,10 +969,8 @@ function node_menu() {
$items['admin/content'] = array(
'title' => 'Content',
'description' => 'Find and manage content.',
'page callback' => 'node_admin_nodes',
'access arguments' => array('access content overview'),
'route_name' => 'node.content_overview',
'weight' => -10,
'file' => 'node.admin.inc',
);
$items['admin/content/node'] = array(
'title' => 'Content',
......
node.content_overview:
path: '/admin/content'
defaults:
_title: 'Content'
_content: '\Drupal\node\Controller\NodeController::contentOverview'
requirements:
_permission: 'access content overview'
node.multiple_delete_confirm:
path: '/admin/content/node/delete'
defaults:
......
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