\Translatable_Transformation
Transform a formfield to a "translatable" representation, consisting of the original formfield plus a readonly-version of the original value, wrapped in a CompositeField.
Synopsis
class Translatable_Transformation
extends FormTransformation
{
- // members
- private DataObject $original = NULL;
- // methods
- public void __construct()
- public DataObject getOriginal()
- public void transformFormField()
- protected CheckboxField transformCheckboxField()
- protected CompositeField baseTransform()
Hierarchy
Extends
- FormTransformation
Members
private
- $original — DataObject
Methods
protected
- baseTransform() — Transform a translatable field to show the field value from the default language DataObject below the translated field.
- transformCheckboxField() — Transform a translatable CheckboxField to show the field value from the default language in the label.
public
- __construct()
- getOriginal() — Returns the original DataObject attached to the Transformation
- transformFormField()