FeedDeleteForm.php

Same filename in other branches
  1. 9 core/modules/aggregator/src/Form/FeedDeleteForm.php

Namespace

Drupal\aggregator\Form

File

core/modules/aggregator/src/Form/FeedDeleteForm.php

View source
<?php

namespace Drupal\aggregator\Form;

use Drupal\Core\Entity\ContentEntityDeleteForm;
use Drupal\Core\Url;

/**
 * Provides a form for deleting a feed.
 *
 * @internal
 */
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(),
        ]);
    }

}

Classes

Title Deprecated Summary
FeedDeleteForm Provides a form for deleting a feed.

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