FeedDeleteForm.php 712 Bytes
Newer Older
1
<?php
2

3 4 5 6 7 8 9
/**
 * @file
 * Contains \Drupal\aggregator\Form\FeedDeleteForm.
 */

namespace Drupal\aggregator\Form;

10
use Drupal\Core\Entity\ContentEntityDeleteForm;
11
use Drupal\Core\Url;
12 13 14 15

/**
 * Provides a form for deleting a feed.
 */
16
class FeedDeleteForm extends ContentEntityDeleteForm {
17 18 19 20

  /**
   * {@inheritdoc}
   */
21
  public function getCancelUrl() {
22
    return new Url('aggregator.admin_overview');
23 24
  }

25 26 27 28 29 30 31
  /**
   * {@inheritdoc}
   */
  protected function getRedirectUrl() {
    return $this->getCancelUrl();
  }

32 33 34
  /**
   * {@inheritdoc}
   */
35 36 37 38
  protected function getDeletionMessage() {
    return $this->t('The feed %label has been deleted.', array(
      '%label' => $this->entity->label(),
    ));
39 40 41
  }

}