function log_form_system_themes_admin_form_alter in Log entity 8
Implements hook_form_FORM_ID_alter().
Alters the theme form to use the admin theme on log editing.
See also
log_form_system_themes_admin_form_submit()
File
- ./
log.module, line 139 - Contains log.module..
Code
function log_form_system_themes_admin_form_alter(&$form, FormStateInterface $form_state, $form_id) {
$form['admin_theme']['log_use_admin_theme'] = array(
'#type' => 'checkbox',
'#title' => t('Use the administration theme when editing or creating log entity'),
'#default_value' => \Drupal::configFactory()
->getEditable('log.settings')
->get('log_use_admin_theme'),
);
$form['#submit'][] = 'log_form_system_themes_admin_form_submit';
}