Skip to content
Snippets Groups Projects
Commit 51372ae0 authored by catch's avatar catch
Browse files

Issue #2681753 by lluvigne, subharanjan, cilefen: "Permissions page" link in...

Issue #2681753 by lluvigne, subharanjan, cilefen: "Permissions page" link in Admin > Appearance is hardcoded and breaks on subdirectory setup
parent a888a694
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
...@@ -832,7 +832,7 @@ function node_form_system_themes_admin_form_alter(&$form, FormStateInterface $fo ...@@ -832,7 +832,7 @@ function node_form_system_themes_admin_form_alter(&$form, FormStateInterface $fo
$form['admin_theme']['use_admin_theme'] = array( $form['admin_theme']['use_admin_theme'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => t('Use the administration theme when editing or creating content'), '#title' => t('Use the administration theme when editing or creating content'),
'#description' => t('Control which roles can "View the administration theme" on the <a href=":permissions">Permissions page</a>.', array(':permissions' => '/admin/people/permissions')), '#description' => t('Control which roles can "View the administration theme" on the <a href=":permissions">Permissions page</a>.', array(':permissions' => Url::fromRoute('user.admin_permissions')->toString())),
'#default_value' => \Drupal::configFactory()->getEditable('node.settings')->get('use_admin_theme'), '#default_value' => \Drupal::configFactory()->getEditable('node.settings')->get('use_admin_theme'),
); );
$form['#submit'][] = 'node_form_system_themes_admin_form_submit'; $form['#submit'][] = 'node_form_system_themes_admin_form_submit';
......
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