Clarify that $title in FormField can accept ViewableData (#9268)

Clarify that $title in FormField can accept ViewableData
This commit is contained in:
Guy Marriott 2019-09-26 10:58:12 -07:00 committed by GitHub
commit 9c163afdf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -331,7 +331,7 @@ class FormField extends RequestHandler
* Creates a new field.
*
* @param string $name The internal field name, passed to forms.
* @param null|string $title The human-readable field label.
* @param null|string|SilverStripe\View\ViewableData $title The human-readable field label.
* @param mixed $value The value of the field.
*/
public function __construct($name, $title = null, $value = null)