[#27783] Add aria-invalid to fields with errors
[#27783] Fix phpcs error
Merge branch '7.x-2.x' into 27783-aria-invalid
[#27783] Use "mandatory" instead of "required" for text indication of required field
[#27783] Convert theme functions into reusable preprocess function.
CS change only
Merge pull request #343 from previousnext/27783-aria-invalid

[#27783] Add aria-invalid to fields with errors