Problem/Motivation

Formdazzle figures out a lot of things, form element names, form element types and form IDs, and uses those to create theme suggestions. Sometimes it can't figure anything but the form ID. It would be nice if formdazzle adds hidden data to those form elements so that other hooks can add better suggestions.

Proposed resolution

We are already doing this so that a preprocess function can add suggestions for form_element_label. So we just need to extend this code.

API changes

Additional form elements will have a #formdazzle property set that contains suggestion_suffix, form_id, and form_element_name.

CommentFileSizeAuthor
#2 3082554-1.patch2.79 KBJohnAlbin
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JohnAlbin created an issue. See original summary.

JohnAlbin’s picture

Status: Active » Needs review
FileSize
2.79 KB

  • JohnAlbin committed 6b9a4cb on 8.x-1.x
    Issue #3082554 by JohnAlbin: Add #formdazzle data to allow 3rd party...
JohnAlbin’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.