KeyConfigOverrideDeleteForm.php in Key 8
File
src/Form/KeyConfigOverrideDeleteForm.php
View source
<?php
namespace Drupal\key\Form;
use Drupal\Core\Entity\EntityDeleteForm;
use Drupal\Core\Url;
class KeyConfigOverrideDeleteForm extends EntityDeleteForm {
public function getQuestion() {
return $this
->t('Are you sure you want to delete the override %name?', [
'%name' => $this->entity
->label(),
]);
}
public function getCancelUrl() {
return new Url('entity.key_config_override.collection');
}
public function getConfirmText() {
return $this
->t('Delete');
}
public function getDeletionMessage() {
return $this
->t('The override %name has been deleted.', [
'%name' => $this->entity
->label(),
]);
}
}