Commit 94f2ea4e authored by Shivam Tiwari's avatar Shivam Tiwari Committed by David Suissa
Browse files

Issue #3493798 by ressa, shivam_tiwari, paul_serval, estoclet: Fixed...

Issue #3493798 by ressa, shivam_tiwari, paul_serval, estoclet: Fixed compatibility issue: Route 'update.theme_install' does not exist in Drupal 11.0.x and 10.4.x.
parent ef117857
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -486,7 +486,7 @@ class ExtraLinks extends DeriverBase implements ContainerDeriverInterface {

    // If module Update Manager is enabled.
    if ($this->moduleHandler->moduleExists('update')) {
      if (version_compare(\Drupal::VERSION, '11.0.0', '<')) {
      if (version_compare(\Drupal::VERSION, '11.0.0', '<') && $this->routeExists('update.module_install')) {
        $links['update.module_install'] = [
          'title' => $this->t('Install new module'),
          'route_name' => 'update.module_install',
@@ -498,7 +498,7 @@ class ExtraLinks extends DeriverBase implements ContainerDeriverInterface {
        'route_name' => 'update.module_update',
        'parent' => 'system.modules_list',
      ] + $base_plugin_definition;
      if (version_compare(\Drupal::VERSION, '11.0.0', '<')) {
      if (version_compare(\Drupal::VERSION, '11.0.0', '<') && $this->routeExists('update.theme_install')) {
        $links['update.theme_install'] = [
          'title' => $this->t('Install new theme'),
          'route_name' => 'update.theme_install',