Merge pull request #10387 from kinglozzer/10386-form-attributes

FIX Add missing casting for Form::getAttributesHTML (fixes #10386)
This commit is contained in:
Michal Kleiner 2022-07-05 01:39:35 +12:00 committed by GitHub
commit f2abba8e9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -232,7 +232,8 @@ class Form extends ViewableData implements HasRequestHandler
* @var array
*/
private static $casting = [
'AttributesHTML' => 'HTMLFragment',
'AttributesHTML' => 'HTMLFragment', // property $AttributesHTML version
'getAttributesHTML' => 'HTMLFragment', // method $getAttributesHTML($arg) version
'FormAttributes' => 'HTMLFragment',
'FormName' => 'Text',
'Legend' => 'HTMLFragment',