class CommentIpAdminController in Comment IP 8
Allow for a confirmation form for banning IP addresses.
Hierarchy
- class \Drupal\comment_ip\Controller\CommentIpAdminController extends \Drupal\comment\Controller\AdminController
Expanded class hierarchy of CommentIpAdminController
File
- src/
Controller/ CommentIpAdminController.php, line 11
Namespace
Drupal\comment_ip\ControllerView source
class CommentIpAdminController extends AdminController {
/**
* Presents an administrative comment listing.
*
* @param \Symfony\Component\HttpFoundation\Request $request
* The request of the page.
* @param string $type
* The type of the overview form ('approval' or 'new') default to 'new'.
*
* @return array
* Then comment multiple delete confirmation form or the comments overview
* administration form.
*/
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);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CommentIpAdminController:: |
public | function | Presents an administrative comment listing. |