Skip to content
Snippets Groups Projects
Commit b6ffa568 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2093477 by Tor Arne Thune: Terse text for setting theme as default on Appearance page.

parent 91837e93
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -259,7 +259,7 @@ public function themesPage() {
);
}
$theme->operations[] = array(
'title' => $this->t('Set default'),
'title' => $this->t('Set as default'),
'route_name' => 'system.theme_set_default',
'query' => $query,
'attributes' => array('title' => $this->t('Set !theme as default theme', array('!theme' => $theme->info['name']))),
......@@ -275,7 +275,7 @@ public function themesPage() {
'attributes' => array('title' => $this->t('Enable !theme theme', array('!theme' => $theme->info['name']))),
);
$theme->operations[] = array(
'title' => $this->t('Enable and set default'),
'title' => $this->t('Enable and set as default'),
'route_name' => 'system.theme_set_default',
'query' => $query,
'attributes' => array('title' => $this->t('Enable !theme as default theme', array('!theme' => $theme->info['name']))),
......
......@@ -235,7 +235,7 @@ function testSwitchDefaultTheme() {
// Enable Bartik and set it as the default theme.
theme_enable(array('bartik'));
$this->drupalGet('admin/appearance');
$this->clickLink(t('Set default'));
$this->clickLink(t('Set as default'));
$this->assertEqual(\Drupal::config('system.theme')->get('default'), 'bartik');
drupal_flush_all_caches();
......@@ -245,7 +245,7 @@ function testSwitchDefaultTheme() {
$this->assertText('Bartik(' . t('active tab') . ')', 'Default local task on blocks admin page is the default theme.');
// Switch back to Stark and test again to test that the menu cache is cleared.
$this->drupalGet('admin/appearance');
$this->clickLink(t('Set default'), 0);
$this->clickLink(t('Set as default'), 0);
$this->drupalGet('admin/structure/block');
$this->assertText('Stark(' . t('active tab') . ')', 'Default local task on blocks admin page has changed.');
}
......
......@@ -319,7 +319,7 @@ system.themes_page:
system.theme_set_default:
path: '/admin/appearance/default'
defaults:
_title: 'Set default theme'
_title: 'Set as default theme'
_content: '\Drupal\system\Controller\SystemController::themeSetDefault'
requirements:
_permission: 'administer themes'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment