function test_theme_theme_form_system_theme_settings_alter
Same name in other branches
- 9 core/modules/system/tests/themes/test_theme_theme/test_theme_theme.theme \test_theme_theme_form_system_theme_settings_alter()
- 8.9.x core/modules/system/tests/themes/test_theme_theme/test_theme_theme.theme \test_theme_theme_form_system_theme_settings_alter()
- 11.x core/modules/system/tests/themes/test_theme_theme/test_theme_theme.theme \test_theme_theme_form_system_theme_settings_alter()
Implements hook_form_system_theme_settings_alter().
File
-
core/
modules/ system/ tests/ themes/ test_theme_theme/ test_theme_theme.theme, line 14
Code
function test_theme_theme_form_system_theme_settings_alter(&$form, FormStateInterface $form_state) {
$form['custom_logo'] = [
'#type' => 'managed_file',
'#title' => t('Secondary logo.'),
'#default_value' => theme_get_setting('custom_logo'),
'#progress_indicator' => 'bar',
'#progress_message' => t('Processing...'),
'#upload_location' => 'public://test',
'#upload_validators' => [
'FileExtension' => [
'extensions' => 'gif png jpg jpeg',
],
],
];
$form['#submit'][] = 'test_theme_theme_form_system_theme_settings_submit';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.