class FeedDeleteForm

Provides a form for deleting a feed.

@internal

Hierarchy

Expanded class hierarchy of FeedDeleteForm

File

core/modules/aggregator/src/Form/FeedDeleteForm.php, line 13

Namespace

Drupal\aggregator\Form
View source
class FeedDeleteForm extends ContentEntityDeleteForm {
  
  /**
   * {@inheritdoc}
   */
  public function getCancelUrl() {
    return new Url('aggregator.admin_overview');
  }
  
  /**
   * {@inheritdoc}
   */
  protected function getRedirectUrl() {
    return $this->getCancelUrl();
  }
  
  /**
   * {@inheritdoc}
   */
  protected function getDeletionMessage() {
    return $this->t('The feed %label has been deleted.', [
      '%label' => $this->entity
        ->label(),
    ]);
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.