function ContentEntityConfirmFormBase::getDescription

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php \Drupal\Core\Entity\ContentEntityConfirmFormBase::getDescription()
  2. 8.9.x core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php \Drupal\Core\Entity\ContentEntityConfirmFormBase::getDescription()
  3. 11.x core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php \Drupal\Core\Entity\ContentEntityConfirmFormBase::getDescription()

Overrides ConfirmFormInterface::getDescription

2 calls to ContentEntityConfirmFormBase::getDescription()
BlockContentDeleteForm::getDescription in core/modules/block_content/src/Form/BlockContentDeleteForm.php
Returns additional text to display as a description.
ContentEntityConfirmFormBase::buildForm in core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php
Form constructor.
5 methods override ContentEntityConfirmFormBase::getDescription()
BlockContentDeleteForm::getDescription in core/modules/block_content/src/Form/BlockContentDeleteForm.php
Returns additional text to display as a description.
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.
WorkspaceDeleteForm::getDescription in core/modules/workspaces/src/Form/WorkspaceDeleteForm.php
Returns additional text to display as a description.

File

core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php, line 24

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.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.