public function CommentIpAdminController::adminPage in Comment IP 8
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
- src/
Controller/ CommentIpAdminController.php, line 25
Class
- CommentIpAdminController
- Allow for a confirmation form for banning IP addresses.
Namespace
Drupal\comment_ip\ControllerCode
public function adminPage(Request $request, $type = 'new') {
if ($request->request
->get('operation') == 'ban' && $request->request
->get('comments')) {
return $this->formBuilder
->getForm('\\Drupal\\comment_ip\\Form\\ConfirmBanDeleteMultiple', $request);
}
return parent::adminPage($request, $type);
}