3 namespace Drupal\entity_browser\Form;
5 use Drupal\Core\Entity\EntityDeleteForm;
9 * Delete confirm form for entity browsers.
11 class EntityBrowserDeleteForm extends EntityDeleteForm {
16 public function getQuestion() {
18 'Are you sure you want to delete entity browser %label?',
19 ['%label' => $this->entity->label()]
26 public function getConfirmText() {
27 return $this->t('Delete Entity Browser');
33 public function getCancelUrl() {
34 return new Url('entity.entity_browser.collection');
40 protected function getDeletionMessage() {
42 'Entity browser %label was deleted.',
43 ['%label' => $this->entity->label()]