Commit dcc24b83 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

Issue #3260678 by Liam Morland, Gábor Hojtsy: "Deprecated or obsolete core...

Issue #3260678 by Liam Morland, Gábor Hojtsy: "Deprecated or obsolete core extensions installed" message does not provide guidance, does not expose lifecycle links
parent 9a59722f
Loading
Loading
Loading
Loading
+3 −1
Changes for src/Form/UpgradeStatusForm.php: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -858,7 +858,9 @@ MARKUP
            'data' => $this->t('Deprecated or obsolete core extensions installed. These will be removed in the next major version.'),
          ],
          'status' => [
            'data' => $requirement,
            'data' => [
              '#markup' => $requirement,
            ],
            'class' => 'status-info',
          ],
        ]
+7 −1
Changes for src/ProjectCollector.php: 7 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -364,7 +364,13 @@ class ProjectCollector {
    /** @var \Drupal\Core\Extension\Extension $extension */
    foreach ($extensions as $key => $extension) {
      if ($extension->origin === 'core' && !empty($extension->info['lifecycle']) && in_array($extension->info['lifecycle'], ['deprecated', 'obsolete'])) {
        $deprecated_or_obsolete[$key] = $extension->info['name'];
        $prefix = '';
        $suffix = '';
        if (isset($extension->info['lifecycle_link'])) {
          $prefix = '<a href="' . $extension->info['lifecycle_link'] . '">';
          $suffix = ' (' . $this->t('read more') . ')</a>';
        }
        $deprecated_or_obsolete[$key] = $prefix . $extension->info['name'] . $suffix;
      }
    }
    return $deprecated_or_obsolete;