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(),
  ));
}
doc_Drupal
2016-10-29 09:05:09
Comments
Leave a Comment

Please login to continue.