function PrepareModulesEntityUninstallForm::getQuestion

Same name in other branches
  1. 9 core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php \Drupal\system\Form\PrepareModulesEntityUninstallForm::getQuestion()
  2. 8.9.x core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php \Drupal\system\Form\PrepareModulesEntityUninstallForm::getQuestion()
  3. 11.x core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php \Drupal\system\Form\PrepareModulesEntityUninstallForm::getQuestion()

Overrides ConfirmFormInterface::getQuestion

1 call to PrepareModulesEntityUninstallForm::getQuestion()
PrepareModulesEntityUninstallForm::formTitle in core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php
Gets the form title.

File

core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php, line 67

Class

PrepareModulesEntityUninstallForm
Provides a form removing module content entities data before uninstallation.

Namespace

Drupal\system\Form

Code

public function getQuestion() {
    $entity_type = $this->entityTypeManager
        ->getDefinition($this->entityTypeId);
    return $this->t('Are you sure you want to delete all @entity_type_plural?', [
        '@entity_type_plural' => $entity_type->getPluralLabel(),
    ]);
}

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