Issue #3311480: Remove the need of preprocess hooks: add_class & set_attributes
1 unresolved thread
Merge request reports
Activity
243 * @param array $element 244 * Render array. 245 * 246 * @return array 247 * Render array. 248 */ 249 public static function processFieldAttributes(array $element) { 250 $definition = UiPatterns::getPatternDefinition($element['#id']); 251 $fields = $definition->getFields(); 252 foreach ($fields as $field_id => $field_definition) { 253 if (!\is_array($element['#' . $field_id])) { 254 continue; 255 } 256 $add_class = $field_definition->getClassesToAdd(); 257 if (empty($add_class)) { 258 continue; Seen together with @pdureau this continue is too early and prevents attribute mechanism.
- Resolved by Florent Torregrosa
- Resolved by Florent Torregrosa
mentioned in merge request !25 (merged)
Please register or sign in to reply