Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit df3d1de3 authored by Andreas Hennings's avatar Andreas Hennings Committed by escuriola
Browse files

OEL-1367: Support case where `$config['form']['region']` is not set.

This is relevant if the form is called from another place, not from a block.
parent ce61ec92
No related branches found
No related tags found
2 merge requests!157OEL-1668: Update epic list pages.,!136OEL-1367: New Look & Feel for search form in search page and remove theming from block config form.
......@@ -51,7 +51,10 @@ class SearchForm extends FormBase {
$form_state->set('oe_whitelabel_search_config', $config);
$theme_hook_suffix = $config['form']['region'] . '__' . $this->getFormId();
$theme_hook_suffix = $this->getFormId();
if (isset($config['form']['region'])) {
$theme_hook_suffix = $config['form']['region'] . '__' . $theme_hook_suffix;
}
$form['#theme_wrappers'] = ['form__' . $theme_hook_suffix];
......
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