Page History
...
- constraintField
- FieldDefinition
- To edit the actual contraint (Voter)
- Transformer
- voterClass=info.magnolia.trait.CountryVoter
- FieldDefinition
- valueField
- FieldDefinition
- To edit the value of a trait
- FieldDefinition
- formatter
- previewParameter
- converters for preview
- enables preview of trait in Preview App
- traitClass=info.magnolia.trait.Country
- The actual class (POJO) of the trait
Code Block | ||
---|---|---|
| ||
iterface P13nFieldDefintion {
Class getVoterClass();
} |
Code Block | ||
---|---|---|
| ||
ConfiguredP13nFieldDefintion extends FieldDefinition implement P13nFieldDefintion {
public Class getVoterClass() {}
} |
Result:
info.magnolia.p13n.trait.BaseTraitTransformer#getVoterType() could go and we read voter class from P13nFieldDefinition
Overview
Content Tools