silverstripe-framework/src/Forms/DisabledTransformation.php
2016-11-29 12:31:16 +13:00

15 lines
282 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();
}
}