W3cubDocs

/Drupal 8

public function EntityDeleteFormTrait::getQuestion

public EntityDeleteFormTrait::getQuestion()

File

core/lib/Drupal/Core/Entity/EntityDeleteFormTrait.php, line 46

Class

EntityDeleteFormTrait
Provides a trait for an entity deletion form.

Namespace

Drupal\Core\Entity

Code

public function getQuestion() {
  return $this->t('Are you sure you want to delete the @entity-type %label?', array(
    '@entity-type' => $this->getEntity()->getEntityType()->getLowercaseLabel(),
    '%label' => $this->getEntity()->label(),
  ));
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityDeleteFormTrait.php/function/EntityDeleteFormTrait::getQuestion/8.1.x