You are here

public function ContentEntityConfirmFormBase::getDescription in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php \Drupal\Core\Entity\ContentEntityConfirmFormBase::getDescription()

Returns additional text to display as a description.

Return value

string The form description.

Overrides ConfirmFormInterface::getDescription

1 call to ContentEntityConfirmFormBase::getDescription()
ContentEntityConfirmFormBase::buildForm in core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php
Form constructor.
3 methods override ContentEntityConfirmFormBase::getDescription()
DeleteForm::getDescription in core/modules/comment/src/Form/DeleteForm.php
Returns additional text to display as a description.
TermDeleteForm::getDescription in core/modules/taxonomy/src/Form/TermDeleteForm.php
Returns additional text to display as a description.
UserCancelForm::getDescription in core/modules/user/src/Form/UserCancelForm.php
Returns additional text to display as a description.

File

core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php, line 29
Contains \Drupal\Core\Entity\ContentEntityConfirmFormBase.

Class

ContentEntityConfirmFormBase
Provides a generic base class for an entity-based confirmation form.

Namespace

Drupal\Core\Entity

Code

public function getDescription() {
  return $this
    ->t('This action cannot be undone.');
}