Skip to content
Snippets Groups Projects

Issue #3311480: Remove the need of preprocess hooks: add_class & set_attributes

Open Issue #3311480: Remove the need of preprocess hooks: add_class & set_attributes
1 unresolved thread
Open Pierre Dureau requested to merge issue/ui_patterns-3311480:pierre_proposal into 8.x-1.x
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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;
  • Florent Torregrosa mentioned in merge request !25 (merged)

    mentioned in merge request !25 (merged)

  • Please register or sign in to reply
    Loading