public ContentEntityDeleteForm::getQuestion()
Returns the question to ask the user.
string The form question. The page title will be set to this value.
Overrides ConfirmFormInterface::getQuestion
public function getQuestion() { /** @var \Drupal\Core\Entity\ContentEntityInterface $entity */ $entity = $this->getEntity(); if (!$entity->isDefaultTranslation()) { return $this->t('Are you sure you want to delete the @language translation of the @entity-type %label?', array( '@language' => $entity->language()->getName(), '@entity-type' => $this->getEntity()->getEntityType()->getLowercaseLabel(), '%label' => $this->getEntity()->label(), )); } return $this->traitGetQuestion(); }
© 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!ContentEntityDeleteForm.php/function/ContentEntityDeleteForm::getQuestion/8.1.x