- Issue created by @dipakmdhrm
- Merge request !10759Allow `#title_display` override for Datelist element parts. → (Open) created by dipakmdhrm
- First commit to issue fork.
- 🇬🇧United Kingdom mjpa
@dipakmdhrm I've updated the fork/MR with a slight change so that it uses the value that's set in the form array rather than a fixed 'invisible'
- 🇺🇸United States luke.leber Pennsylvania
I am mildly confused why this can't be preprocessed back in normally?
/** * Implements hook_preprocess_HOOK() for form_element__datelist. */ function my_theme_preprocess_form_element__datelist(array &$variables) { foreach (Element::children($variables['element']) as $child) { $variables['element'][$child]['#title_display'] = 'invisible'; } }
should work
- 🇬🇧United Kingdom mjpa
The separate elements are added in a process callback, so the preprocess hook would be too early won't it?