silverstripe-framework/forms/DisabledTransformation.php
2012-09-20 10:46:59 +02:00

13 lines
289 B
PHP

<?php
/**
* Transformation that disables all the fields on the form.
* @package forms
* @subpackage transformations
*/
class DisabledTransformation extends FormTransformation {
public function transform(FormField $field) {
return $field->performDisabledTransformation($this);
}
}