Skip to content
Snippets Groups Projects
Unverified Commit 2902531a authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2833864 by RoSk0, colan, ressa, Chi, alexpott, joachim, loopy1492,...

Issue #2833864 by RoSk0, colan, ressa, Chi, alexpott, joachim, loopy1492, zoiosilva: Unmet installation requirements may contain render elements

(cherry picked from commit 857d454c1b26f6e24bc80d35bf596f7994736261)
parent c7f4fe4d
Branches
Tags
9 merge requests!2496Issue #3222757 by lauriii, Wim Leers, nod_, rachel_norfolk, itmaybejj,...,!2366Issue #3285105 by Daniel Arend,!2304Issue #3258987: Class "Drupal\Core\Utility\Error" not found in _drupal_error_handler_real() due to bug in PHP 8.1.0-8.1.5,!2148Issue #3270899: Remove Color module from core,!2071Issue #927570: Setting 403 or 404 handler to a page that redirects leads to endless loop,!1975Issue #3269749: losing query params from user to user/login redirect,!1387Draft: Resolve #2511878 "Support enclosure field",!799Issue #3214332: Preview content is broken in Claro.,!558Resolve #3020422 "Toolbar style update"
......@@ -2297,7 +2297,16 @@ function install_display_requirements($install_state, $requirements) {
// proceed in a single request so there is no good opportunity (and no
// good method) to warn the user anyway.
if (isset($requirement['severity']) && $requirement['severity'] == REQUIREMENT_ERROR) {
$failures[] = $requirement['title'] . ': ' . $requirement['value'] . "\n\n" . $requirement['description'];
$render_array = [
'#type' => 'inline_template',
'#template' => '{{ title }}:{{ value }}<br /><br />{{ description }}',
'#context' => [
'title' => $requirement['title'],
'value' => $requirement['value'],
'description' => $requirement['description'],
],
];
$failures[] = \Drupal::service('renderer')->renderPlain($render_array);
}
}
if (!empty($failures)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment