Issue #2029569 by AjitS, tim.plunkett: Convert node_admin_nodes() to a new-style Controller.
parent
04f662ff72
commit
5089f20fc9
|
@ -15,6 +15,14 @@ use Drupal\node\NodeInterface;
|
|||
*/
|
||||
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',
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
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:
|
||||
|
|
Loading…
Reference in New Issue