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

Skip to content
Snippets Groups Projects
Commit bab89501 authored by escuriola's avatar escuriola
Browse files

OEL-1374: Remove unused functions.

parent abfbf654
No related branches found
No related tags found
3 merge requests!149Update EPIC-1450-List-pages,!141Update EPIC-1293-Project,!126OEL-1374: Search page look & feel update
......@@ -138,21 +138,3 @@ function oe_whitelabel_preprocess_media__document__default(&$variables) {
$variables['translations'][] = $wrapper->toFileValueObject();
}
}
/**
* Implements hook_theme_suggestions_HOOK_alter() for form_element.
*/
function oe_whitelabel_theme_suggestions_form_element_alter(array &$suggestions, array $variables) {
if (isset($variables['element']['#id']) && str_contains($variables['element']['#id'], 'sort-bef-combine')) {
$suggestions[] = 'form_element__sort_by_bef';
}
}
/**
* Preprocess sort by bef form element label.
*/
function oe_whitelabel_preprocess_form_element_label(&$variables) {
if (str_contains($variables['element']['#id'], 'sort-bef-combine')) {
$variables['attributes']['class'][] = 'mb-0';
}
}
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