API Form::makeReadonly() returns self

Fixes #8006
This commit is contained in:
Damian Mooyman 2018-04-16 14:01:49 +12:00
parent d21e03d4ed
commit c8b3593090
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A

View File

@ -563,12 +563,16 @@ class Form extends ViewableData implements HasRequestHandler
return $this;
}
/**
* Convert this form into a readonly form
*
* @return $this
*/
public function makeReadonly()
{
$this->transform(new ReadonlyTransformation());
return $this;
}
/**