/**
  * Transform a given form field into a composite field, where the translation is editable and the original value
  * is added as a read-only field.
  * @param FormField $field
  * @return CompositeField
  */
 public function transformFormField(FormField $field)
 {
     $newfield = $field->performReadOnlyTransformation();
     $fieldname = $field->getName();
     if ($this->original->isLocalizedField($fieldname)) {
         $field->setName($this->original->getLocalizedFieldName($fieldname));
         $field->setValue($this->original->getLocalizedValue($fieldname));
     }
     return $this->baseTransform($newfield, $field, $fieldname);
 }
 function transformFormField(FormField $field)
 {
     $newfield = $field->performReadOnlyTransformation();
     return $this->baseTransform($newfield, $field);
 }
 public function transformFormField(FormField $field)
 {
     $newfield = $field->performReadOnlyTransformation();
     $fn = 'transform' . $field->class;
     return $this->hasMethod($fn) ? $this->{$fn}($newfield, $field) : $this->baseTransform($newfield, $field);
 }