public function ContentEntityConfirmFormBase::getDescription in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php \Drupal\Core\Entity\ContentEntityConfirmFormBase::getDescription()
- 9 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.
4 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.
- 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\EntityCode
public function getDescription() {
return $this
->t('This action cannot be undone.');
}