DeleteMultiple.php in Drupal 9
File
core/modules/node/src/Form/DeleteMultiple.php
View source
<?php
namespace Drupal\node\Form;
use Drupal\Core\Entity\Form\DeleteMultipleForm as EntityDeleteMultipleForm;
use Drupal\Core\Url;
class DeleteMultiple extends EntityDeleteMultipleForm {
public function getCancelUrl() {
return new Url('system.admin_content');
}
protected function getDeletedMessage($count) {
return $this
->formatPlural($count, 'Deleted @count content item.', 'Deleted @count content items.');
}
protected function getInaccessibleMessage($count) {
return $this
->formatPlural($count, "@count content item has not been deleted because you do not have the necessary permissions.", "@count content items have not been deleted because you do not have the necessary permissions.");
}
}