17a179864fc7adbfdb67c62ff4deca5a33f742f6
[yaffs-website] / Form / FeedDeleteForm.php
1 <?php
2
3 namespace Drupal\aggregator\Form;
4
5 use Drupal\Core\Entity\ContentEntityDeleteForm;
6 use Drupal\Core\Url;
7
8 /**
9  * Provides a form for deleting a feed.
10  */
11 class FeedDeleteForm extends ContentEntityDeleteForm {
12
13   /**
14    * {@inheritdoc}
15    */
16   public function getCancelUrl() {
17     return new Url('aggregator.admin_overview');
18   }
19
20   /**
21    * {@inheritdoc}
22    */
23   protected function getRedirectUrl() {
24     return $this->getCancelUrl();
25   }
26
27   /**
28    * {@inheritdoc}
29    */
30   protected function getDeletionMessage() {
31     return $this->t('The feed %label has been deleted.', [
32       '%label' => $this->entity->label(),
33     ]);
34   }
35
36 }