PersonalisationVariation::getCMSFields
Get fields. This is a bit hacky to get around ModelAdmin limitations. Basically, if we are adding a new record, we actually want to return the fields of the specific subclass not PersonalisationVariation itself.
So we look for that condition, and if we get it, we create a subclass instance and return it's fields. It will in turn call this function, so we need to protect against multiple calls.
Signature
public function getCMSFields()
Returns
- FieldList