for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @file
* Contains Drupal\entity_browser\Form\EntityBrowserDeleteForm.
*/
namespace Drupal\entity_browser\Form;
use Drupal\Core\Entity\EntityDeleteForm;
use Drupal\Core\Url;
use Drupal\Core\Form\FormStateInterface;
* Delete confirm form for entity browsers.
class EntityBrowserDeleteForm extends EntityDeleteForm {
* {@inheritdoc}
public function getQuestion() {
return $this->t('Are you sure you want to delete entity browser %label?', array(
'%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.', array(