function BlockDeleteForm::getDeletionMessage
Same name in other branches
- 9 core/modules/block/src/Form/BlockDeleteForm.php \Drupal\block\Form\BlockDeleteForm::getDeletionMessage()
- 10 core/modules/block/src/Form/BlockDeleteForm.php \Drupal\block\Form\BlockDeleteForm::getDeletionMessage()
- 11.x core/modules/block/src/Form/BlockDeleteForm.php \Drupal\block\Form\BlockDeleteForm::getDeletionMessage()
Overrides EntityDeleteFormTrait::getDeletionMessage
File
-
core/
modules/ block/ src/ Form/ BlockDeleteForm.php, line 42
Class
- BlockDeleteForm
- Provides a deletion confirmation form for the block instance deletion form.
Namespace
Drupal\block\FormCode
protected function getDeletionMessage() {
$entity = $this->getEntity();
return $this->t('The @entity-type %label has been removed.', [
'@entity-type' => $entity->getEntityType()
->getSingularLabel(),
'%label' => $entity->label(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.