Merge pull request #8007 from open-sausages/pulls/4/readonly-this-form

API Form::makeReadonly() returns self
This commit is contained in:
Daniel Hensby 2018-04-16 15:18:36 +01:00 committed by GitHub
commit df3b0a90fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}
/**