silverstripe-framework/forms/DisabledTransformation.php
Damian Mooyman a809e80d01 API Convert CMS forms to bootstrap
NEW Add cms-forms microtheme to cater to bootstrap's needs.

Note that the old SS3 assets section is buggy as a result of this change.
2016-07-25 17:24:26 +12:00

13 lines
284 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();
}
}