function PrepareModulesEntityUninstallForm::formTitle

Same name in other branches
  1. 11.x core/modules/system/src/Form/PrepareModulesEntityUninstallForm.php \Drupal\system\Form\PrepareModulesEntityUninstallForm::formTitle()

Gets the form title.

Parameters

string $entity_type_id: The entity type ID.

Return value

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

Throws

\Drupal\Component\Plugin\Exception\PluginNotFoundException Thrown when the entity-type does not exist.

1 string reference to 'PrepareModulesEntityUninstallForm::formTitle'
system.routing.yml in core/modules/system/system.routing.yml
core/modules/system/system.routing.yml

File

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

Class

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

Namespace

Drupal\system\Form

Code

public function formTitle(string $entity_type_id) : TranslatableMarkup {
    $this->entityTypeId = $entity_type_id;
    return $this->getQuestion();
}

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