silverstripe-framework/src/Forms/DisabledTransformation.php

13 lines
266 B
PHP

<?php
namespace SilverStripe\Forms;
/**
* Transformation that disables all the fields on the form.
*/
class DisabledTransformation extends FormTransformation {
public function transform(FormField $field) {
return $field->performDisabledTransformation();
}
}