protected function ContentEntityDeleteForm::getDeletionMessage
protected ContentEntityDeleteForm::getDeletionMessage()
File
- core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php, line 90
Class
- ContentEntityDeleteForm
- Provides a generic base class for a content entity deletion form.
Namespace
Drupal\Core\EntityCode
protected function getDeletionMessage() { /** @var \Drupal\Core\Entity\ContentEntityInterface $entity */ $entity = $this->getEntity(); if (!$entity->isDefaultTranslation()) { return $this->t('The @entity-type %label @language translation has been deleted.', [ '@entity-type' => $entity->getEntityType()->getLowercaseLabel(), '%label' => $entity->label(), '@language' => $entity->language()->getName(), ]); } return $this->traitGetDeletionMessage(); }
© 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::getDeletionMessage/8.1.x