2007-07-19 12:40:28 +02:00
|
|
|
<?php
|
2016-08-19 00:51:35 +02:00
|
|
|
|
|
|
|
namespace SilverStripe\Forms;
|
|
|
|
|
2008-01-09 05:18:36 +01:00
|
|
|
/**
|
|
|
|
* Transformation that disables all the fields on the form.
|
|
|
|
*/
|
2016-11-29 00:31:16 +01:00
|
|
|
class DisabledTransformation extends FormTransformation
|
|
|
|
{
|
|
|
|
public function transform(FormField $field)
|
|
|
|
{
|
|
|
|
return $field->performDisabledTransformation();
|
|
|
|
}
|
2007-07-19 12:40:28 +02:00
|
|
|
}
|