Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 8 |
| FeedDeleteForm | |
0.00% |
0 / 1 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 8 |
| getCancelUrl | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getRedirectUrl | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getDeletionMessage | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 4 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\aggregator\Form\FeedDeleteForm. | |
| */ | |
| namespace Drupal\aggregator\Form; | |
| use Drupal\Core\Entity\ContentEntityDeleteForm; | |
| use Drupal\Core\Url; | |
| /** | |
| * Provides a form for deleting a feed. | |
| */ | |
| 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.', array( | |
| '%label' => $this->entity->label(), | |
| )); | |
| } | |
| } |