Skip to content
Snippets Groups Projects
Commit 8f6cb348 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

Issue #2112233 by alexpott, amateescu: Remove unnecessary ternaries in around config()->get().

parent 4a7a8b3c
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
......@@ -177,7 +177,7 @@ function testHideBlockTitle() {
$title = $this->randomName(8);
$id = strtolower($this->randomName(8));
// Enable a standard block.
$default_theme = \Drupal::config('system.theme')->get('default') ?: 'stark';
$default_theme = \Drupal::config('system.theme')->get('default');
$edit = array(
'id' => $id,
'region' => 'sidebar_first',
......
......@@ -394,7 +394,7 @@ function testSystemMenuRename() {
$this->drupalPostForm('admin/structure/menu/manage/main', $edit, t('Save'));
// Make sure menu shows up with new name in block addition.
$default_theme = \Drupal::config('system.theme')->get('default') ?: 'stark';
$default_theme = \Drupal::config('system.theme')->get('default');
$this->drupalget('admin/structure/block/list/' . $default_theme);
$this->assertText($edit['label']);
}
......
......@@ -222,7 +222,7 @@ function system_permission() {
),
'view the administration theme' => array(
'title' => t('View the administration theme'),
'description' => \Drupal::config('system.theme')->get('admin') ?: t('This is only used when the site is configured to use a separate administration theme on the <a href="@appearance-url">Appearance</a> page.', array('@appearance-url' => url('admin/appearance'))),
'description' => t('This is only used when the site is configured to use a separate administration theme on the <a href="@appearance-url">Appearance</a> page.', array('@appearance-url' => url('admin/appearance'))),
),
'access site reports' => array(
'title' => t('View site reports'),
......
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