Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / node / src / Form / DeleteMultiple.php
1 <?php
2
3 namespace Drupal\node\Form;
4
5 use Drupal\Core\Entity\Form\DeleteMultipleForm as EntityDeleteMultipleForm;
6 use Drupal\Core\Url;
7
8 /**
9  * Provides a node deletion confirmation form.
10  *
11  * @internal
12  */
13 class DeleteMultiple extends EntityDeleteMultipleForm {
14
15   /**
16    * {@inheritdoc}
17    */
18   public function getCancelUrl() {
19     return new Url('system.admin_content');
20   }
21
22   /**
23    * {@inheritdoc}
24    */
25   protected function getDeletedMessage($count) {
26     return $this->formatPlural($count, 'Deleted @count content item.', 'Deleted @count content items.');
27   }
28
29   /**
30    * {@inheritdoc}
31    */
32   protected function getInaccessibleMessage($count) {
33     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.");
34   }
35
36 }