You are here

public function ContentEntityConfirmFormBase::getDescription in Drupal 8

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

Returns additional text to display as a description.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form description.

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