Magnolia 5 UI field transformer classes no longer exist in the Magnolia 6 UI framework. The transformer functionality is now distributed among different components. The following is a summary of the features the components do:
- Modify the target property name by appending a locale suffix or by prepending a field prefix. This is done by concrete
PropertySet
implementations (JcrItemPropertySet
) and/or byPropertyNameDecorator
. - Resolve an item data source of complex fields, a functionality usually covered by item providers.
- Manage item data sources of multi-value field entries. This is handled by
MultiFormView.EntryResolution
, which resolves the children and binds each of them to the item provider strategy.
Replacements for field transformers
Default 5 UI transformer classes
info.magnolia.ui.form.field.transformer.* | In 6 UI |
---|---|
basic.BasicTransformer
| Not needed. Its functions are obsolete; some are taken over by Vaadin PropertySet. |
composite.CompositeTransformer
| Use |
composite.SwitchableTransformer | Use |
Other 5 UI transformer classes
info.magnolia.ui.form.field.transformer.* | In 6 UI |
---|---|
composite.DelegatingCompositeFieldTransformer | Use info.magnolia.ui.editor.CurrentItemProvider . |
composite.NoOpCompositeTransformer | Not needed. |
multi.DelegatingMultiValueFieldTransformer | Use info.magnolia.ui.editor.CurrentItemProvider . |
multi.DelegatingMultiValueSubnodeTransformer 6.2.1+ | Use
|
multi.MultiValueChildNodeTransformer | Deprecated, no automatic conversion. |
multi.MultiValueChildrenNodeTransformer | Deprecated, no automatic conversion. |
multi.MultiValueJSONTransformer | Deprecated, no automatic conversion. |
multi.MultiValueSubChildrenNodePropertiesTransformer 6.2.1+ | Use
|
multi.MultiValueSubChildrenNodeTransformer | Deprecated, no automatic conversion. |
Personalization (trait) transformers
The 5 UI transformers with personalization-related functions have undergone the following changes, but still use the old framework (magnolia-personalization-compatibility
).
info.magnolia.personalization.* | Description |
---|---|
cookie.CookieFieldTransformer | Custom transformer for cookie traits. |
ui.SimpleTraitValueTransformer | Now functions as the default trait transformer. |
visitor.transformer.VisitorTraitListToSetTransformer | Still exists, but is no longer needed. |