AdminController::adminPage

public AdminController::adminPage(Request $request, $type = 'new')

Presents an administrative comment listing.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The request of the page.

string $type: The type of the overview form ('approval' or 'new') default to 'new'.

Return value

array Then comment multiple delete confirmation form or the comments overview administration form.

File

core/modules/comment/src/Controller/AdminController.php, line 53

Class

AdminController
Returns responses for comment module administrative routes.

Namespace

Drupal\comment\Controller

Code

public function adminPage(Request $request, $type = 'new') {
  if ($request->request->get('operation') == 'delete' && $request->request->get('comments')) {
    return $this->formBuilder->getForm('\Drupal\comment\Form\ConfirmDeleteMultiple', $request);
  }
  else {
    return $this->formBuilder->getForm('\Drupal\comment\Form\CommentAdminOverview', $type);
  }
}
doc_Drupal
2016-10-29 08:43:40
Comments
Leave a Comment

Please login to continue.