EntityBrowserDeleteForm.php in Entity Browser 8
File
src/Form/EntityBrowserDeleteForm.php
View source
<?php
namespace Drupal\entity_browser\Form;
use Drupal\Core\Entity\EntityDeleteForm;
use Drupal\Core\Url;
class EntityBrowserDeleteForm extends EntityDeleteForm {
public function getQuestion() {
return $this
->t('Are you sure you want to delete entity browser %label?', [
'%label' => $this->entity
->label(),
]);
}
public function getConfirmText() {
return $this
->t('Delete Entity Browser');
}
public function getCancelUrl() {
return new Url('entity.entity_browser.collection');
}
protected function getDeletionMessage() {
return $this
->t('Entity browser %label was deleted.', [
'%label' => $this->entity
->label(),
]);
}
}