Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 8 |
ShortcutDeleteForm | |
0.00% |
0 / 1 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 8 |
getFormId | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
getCancelUrl | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 4 |
|||
getRedirectUrl | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
<?php | |
/** | |
* @file | |
* Contains \Drupal\shortcut\Form\ShortcutDeleteForm. | |
*/ | |
namespace Drupal\shortcut\Form; | |
use Drupal\Core\Entity\ContentEntityDeleteForm; | |
use Drupal\Core\Url; | |
/** | |
* Builds the shortcut link deletion form. | |
*/ | |
class ShortcutDeleteForm extends ContentEntityDeleteForm { | |
/** | |
* {@inheritdoc} | |
*/ | |
public function getFormId() { | |
return 'shortcut_confirm_delete'; | |
} | |
/** | |
* {@inheritdoc} | |
*/ | |
public function getCancelUrl() { | |
return new Url('entity.shortcut_set.customize_form', array( | |
'shortcut_set' => $this->entity->bundle(), | |
)); | |
} | |
/** | |
* {@inheritdoc} | |
*/ | |
protected function getRedirectUrl() { | |
return $this->getCancelUrl(); | |
} | |
} |