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 {
|
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().
|
* @todo Remove node_add_page().
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -969,10 +969,8 @@ function node_menu() {
|
||||||
$items['admin/content'] = array(
|
$items['admin/content'] = array(
|
||||||
'title' => 'Content',
|
'title' => 'Content',
|
||||||
'description' => 'Find and manage content.',
|
'description' => 'Find and manage content.',
|
||||||
'page callback' => 'node_admin_nodes',
|
'route_name' => 'node.content_overview',
|
||||||
'access arguments' => array('access content overview'),
|
|
||||||
'weight' => -10,
|
'weight' => -10,
|
||||||
'file' => 'node.admin.inc',
|
|
||||||
);
|
);
|
||||||
$items['admin/content/node'] = array(
|
$items['admin/content/node'] = array(
|
||||||
'title' => 'Content',
|
'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:
|
node.multiple_delete_confirm:
|
||||||
path: '/admin/content/node/delete'
|
path: '/admin/content/node/delete'
|
||||||
defaults:
|
defaults:
|
||||||
|
|
Loading…
Reference in New Issue