function BlockDeleteForm::getQuestion
Same name in other branches
- 9 core/modules/block/src/Form/BlockDeleteForm.php \Drupal\block\Form\BlockDeleteForm::getQuestion()
- 8.9.x core/modules/block/src/Form/BlockDeleteForm.php \Drupal\block\Form\BlockDeleteForm::getQuestion()
- 10 core/modules/block/src/Form/BlockDeleteForm.php \Drupal\block\Form\BlockDeleteForm::getQuestion()
Overrides EntityDeleteFormTrait::getQuestion
File
-
core/
modules/ block/ src/ Form/ BlockDeleteForm.php, line 32
Class
- BlockDeleteForm
- Provides a deletion confirmation form for the block instance deletion form.
Namespace
Drupal\block\FormCode
public function getQuestion() {
$entity = $this->getEntity();
$regions = $this->systemRegionList($entity->getTheme(), REGIONS_VISIBLE);
return $this->t('Are you sure you want to remove the @entity-type %label from the %region region?', [
'@entity-type' => $entity->getEntityType()
->getSingularLabel(),
'%label' => $entity->label(),
'%region' => $regions[$entity->getRegion()],
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.