Unverified Commit 3242f339 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
parent 85ccd291
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -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)) {