Issue #2651228 by jordanpagewhite, webbykat: Add description beneath 'User the administration theme for editing content...' on the admin Appearance page

8.1.x
Nathaniel Catchpole 2016-02-18 11:16:35 +09:00
parent d5a862325d
commit b04e99ad2b
1 changed files with 1 additions and 0 deletions

View File

@ -832,6 +832,7 @@ function node_form_system_themes_admin_form_alter(&$form, FormStateInterface $fo
$form['admin_theme']['use_admin_theme'] = array(
'#type' => 'checkbox',
'#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')),
'#default_value' => \Drupal::configFactory()->getEditable('node.settings')->get('use_admin_theme'),
);
$form['#submit'][] = 'node_form_system_themes_admin_form_submit';