I'd like to use placeholders instead of labels for a form built with the form API.
I can get placeholders working well with the Elements module, but now I want to hide the labels. If I just set
['#title'] = NULL; then form errors don't have descriptive names, and it ruins accessibility.
In Drupal 7, you could set the
invisible (documentation). Was something like this backported in a contrib module somewhere?
Or is there a way I can set my own class on the