function ModulesListNonStableConfirmForm::buildDeprecatedMessage
Same name in other branches
- 9 core/modules/system/src/Form/ModulesListNonStableConfirmForm.php \Drupal\system\Form\ModulesListNonStableConfirmForm::buildDeprecatedMessage()
- 11.x core/modules/system/src/Form/ModulesListNonStableConfirmForm.php \Drupal\system\Form\ModulesListNonStableConfirmForm::buildDeprecatedMessage()
Builds a message to be displayed to the user enabling deprecated modules.
Parameters
bool $core_deprecated_modules: TRUE if a core deprecated module is being enabled.
bool $contrib_deprecated_modules: TRUE if a contrib deprecated module is being enabled.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The relevant message.
1 call to ModulesListNonStableConfirmForm::buildDeprecatedMessage()
- ModulesListNonStableConfirmForm::buildMessageList in core/
modules/ system/ src/ Form/ ModulesListNonStableConfirmForm.php - Builds the message list for the confirmation form.
File
-
core/
modules/ system/ src/ Form/ ModulesListNonStableConfirmForm.php, line 150
Class
- ModulesListNonStableConfirmForm
- Builds a confirmation form for enabling experimental and deprecated modules.
Namespace
Drupal\system\FormCode
protected function buildDeprecatedMessage(bool $core_deprecated_modules, bool $contrib_deprecated_modules) : TranslatableMarkup {
if ($contrib_deprecated_modules && $core_deprecated_modules) {
return $this->t('<a href=":url">Deprecated modules</a> are modules that may be removed from the next major release of Drupal core and the relevant contributed module. Use at your own risk.', [
':url' => 'https://www.drupal.org/about/core/policies/core-change-policies/deprecated-modules-and-themes',
]);
}
if ($contrib_deprecated_modules) {
return $this->t('<a href=":url">Deprecated modules</a> are modules that may be removed from the next major release of this project. Use at your own risk.', [
':url' => 'https://www.drupal.org/about/core/policies/core-change-policies/deprecated-modules-and-themes',
]);
}
return $this->t('<a href=":url">Deprecated modules</a> are modules that may be removed from the next major release of Drupal core. Use at your own risk.', [
':url' => 'https://www.drupal.org/about/core/policies/core-change-policies/deprecated-modules-and-themes',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.