FIX: Add missing casting for Form::getAttributesHTML (fixes #10386)

This commit is contained in:
Loz Calver 2022-07-04 12:24:58 +01:00
parent 55c3e24a50
commit 9b45342a06
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',