public function deleteAll()
{
if ($GLOBALS['TL_DCA'][$this->strTable]['config']['notDeletable']) {
throw new InternalServerErrorException('Table "' . $this->strTable . '" is not deletable.');
}
/** @var SessionInterface $objSession */
$objSession = \System::getContainer()->get('session');
$session = $objSession->all();
$ids = $session['CURRENT']['IDS'];
if (is_array($ids) && strlen($ids[0])) {
foreach ($ids as $id) {
$this->delete($id);
// do not urldecode() here (see #6840)
}
}
$this->redirect($this->getReferer());
}