Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / update / src / Form / UpdateManagerUpdate.php
index db497c276bb53dd5ebd2d24b178b915b12992146..0b3196865c5ad266240f963c4725059ae594f306 100644 (file)
@@ -69,7 +69,7 @@ class UpdateManagerUpdate extends FormBase {
       '#last' => $this->state->get('update.last_check') ?: 0,
     ];
     $form['last_check'] = [
-      '#markup' => drupal_render($last_markup),
+      '#markup' => \Drupal::service('renderer')->render($last_markup),
     ];
 
     if (!_update_manager_check_backends($form, 'update')) {
@@ -181,10 +181,12 @@ class UpdateManagerUpdate extends FormBase {
       }
 
       // Use the project title for the tableselect checkboxes.
-      $entry['title'] = ['data' => [
-        '#title' => $entry['title'],
-        '#markup' => $entry['title'],
-      ]];
+      $entry['title'] = [
+        'data' => [
+          '#title' => $entry['title'],
+          '#markup' => $entry['title'],
+        ],
+      ];
       $entry['#attributes'] = ['class' => ['update-' . $type]];
 
       // Drupal core needs to be upgraded manually.
@@ -278,7 +280,7 @@ class UpdateManagerUpdate extends FormBase {
 
     if (!empty($projects['manual'])) {
       $prefix = '<h2>' . $this->t('Manual updates required') . '</h2>';
-      $prefix .= '<p>' . $this->t('Updates of Drupal core are not supported at this time.') . '</p>';
+      $prefix .= '<p>' . $this->t('Automatic updates of Drupal core are not supported at this time.') . '</p>';
       $form['manual_updates'] = [
         '#type' => 'table',
         '#header' => $headers,