diff --git a/core/modules/system/lib/Drupal/system/Controller/SystemController.php b/core/modules/system/lib/Drupal/system/Controller/SystemController.php index 93d345b..fce04b8 100644 --- a/core/modules/system/lib/Drupal/system/Controller/SystemController.php +++ b/core/modules/system/lib/Drupal/system/Controller/SystemController.php @@ -236,7 +236,6 @@ public function themesPage() { // Confirm that the theme engine is available. $theme->incompatible_engine = isset($theme->info['engine']) && !isset($theme->owner); } - $query['token'] = $this->tokenGenerator->get('system-theme-operation-link'); $theme->operations = array(); if (!empty($theme->status) || !$theme->incompatible_core && !$theme->incompatible_php && !$theme->incompatible_base && !$theme->incompatible_engine) { // Create the operations links. @@ -244,7 +243,8 @@ public function themesPage() { if ($this->themeAccess->checkAccess($theme->name)) { $theme->operations[] = array( 'title' => $this->t('Settings'), - 'href' => 'admin/appearance/settings/' . $theme->name, + 'route_name' => 'system.theme_settings_theme', + 'route_parameters' => array('theme' => $theme->name), 'attributes' => array('title' => $this->t('Settings for !theme theme', array('!theme' => $theme->info['name']))), ); } @@ -253,14 +253,14 @@ public function themesPage() { if ($theme->name != $admin_theme) { $theme->operations[] = array( 'title' => $this->t('Disable'), - 'href' => 'admin/appearance/disable', + 'route_name' => 'system.theme_disable', 'query' => $query, 'attributes' => array('title' => $this->t('Disable !theme theme', array('!theme' => $theme->info['name']))), ); } $theme->operations[] = array( 'title' => $this->t('Set default'), - 'href' => 'admin/appearance/default', + 'route_name' => 'system.theme_set_default', 'query' => $query, 'attributes' => array('title' => $this->t('Set !theme as default theme', array('!theme' => $theme->info['name']))), ); @@ -270,13 +270,13 @@ public function themesPage() { else { $theme->operations[] = array( 'title' => $this->t('Enable'), - 'href' => 'admin/appearance/enable', + 'route_name' => 'system.theme_enable', 'query' => $query, 'attributes' => array('title' => $this->t('Enable !theme theme', array('!theme' => $theme->info['name']))), ); $theme->operations[] = array( 'title' => $this->t('Enable and set default'), - 'href' => 'admin/appearance/default', + 'route_name' => 'system.theme_set_default', 'query' => $query, 'attributes' => array('title' => $this->t('Enable !theme as default theme', array('!theme' => $theme->info['name']))), );