Version: current

# Class 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.

  Object
  FormTransformation
  Translatable_Transformation

Package: sapphire\misc
Param: DataObject $original Needs the original record as we populate the readonly formfield with the original value
Located at sapphire/core/model/Translatable.php

## Methods summary

`public` | # `__construct( `DataObject` $original )` #### Overrides `Object::__construct`
`public `DataObject`` | # `getOriginal( )` Returns the original DataObject attached to the Transformation Returns the original DataObject attached to the Transformation #### Returns ``DataObject`` DataObject
`public` | # `transformTextareaField( `TextareaField` $field )`
`public` | # `transformFormField( `FormField` $field )`
`protected` | # `baseTransform( mixed $nonEditableField, mixed $originalField )`

### Methods inherited from FormTransformation

`transform()`

### Methods inherited from Object

`__call()`, `__toString()`, `__wakeup()`, `addMethodsFrom()`, `addStaticVars()`, `addWrapperMethod()`, `add_extension()`, `add_static_var()`, `allMethodNames()`, `cacheToFile()`, `cacheToFileWithArgs()`, `clearCache()`, `combined_static()`, `create()`, `createMethod()`, `create_from_string()`, `defineMethods()`, `exists()`, `extInstance()`, `extend()`, `getCustomClass()`, `getExtensionInstance()`, `getExtensionInstances()`, `get_extensions()`, `get_static()`, `hasExtension()`, `hasMethod()`, `has_extension()`, `invokeWithExtensions()`, `is_a()`, `loadCache()`, `parentClass()`, `parse_class_spec()`, `remove_extension()`, `sanitiseCachename()`, `saveCache()`, `set_stat()`, `set_static()`, `set_uninherited()`, `stat()`, `strong_create()`, `uninherited()`, `uninherited_static()`, `useCustomClass()`

### Magic methods summary

## Properties summary

### Properties inherited from Object

`$class`, `$extension_instances`, `$extensions`

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -