FeedDeleteForm.php in Drupal 9
File
core/modules/aggregator/src/Form/FeedDeleteForm.php
View source
<?php
namespace Drupal\aggregator\Form;
use Drupal\Core\Entity\ContentEntityDeleteForm;
use Drupal\Core\Url;
class FeedDeleteForm extends ContentEntityDeleteForm {
public function getCancelUrl() {
return new Url('aggregator.admin_overview');
}
protected function getRedirectUrl() {
return $this
->getCancelUrl();
}
protected function getDeletionMessage() {
return $this
->t('The feed %label has been deleted.', [
'%label' => $this->entity
->label(),
]);
}
}