silverstripe-framework/forms/DisabledTransformation.php
2012-04-17 11:51:55 +12:00

13 lines
282 B
PHP

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