return CmsSectionDefinition::
class;
} protected function defineFields(): FieldCollection
{ $collection =
new FieldCollection([ (new IdField('id', 'id'
))->
addFlags(new PrimaryKey(),
new Required()),
(new IntField('position', 'position'
))->
addFlags(new ApiAware(),
new Required()),
(new StringField('type', 'type'
))->
addFlags(new ApiAware(),
new Required()),
new LockedField(),
(new StringField('name', 'name'
))->
addFlags(new ApiAware()),
(new StringField('section_position', 'sectionPosition'
))->
addFlags(new ApiAware()),
(new StringField('margin_top', 'marginTop'
))->
addFlags(new ApiAware()),
(new StringField('margin_bottom', 'marginBottom'
))->
addFlags(new ApiAware()),
(new StringField('margin_left', 'marginLeft'
))->
addFlags(new ApiAware()),
(new StringField('margin_right', 'marginRight'
))->
addFlags(new ApiAware()),
(new StringField('background_color', 'backgroundColor'
))->
addFlags(new ApiAware()),
(new FkField('background_media_id', 'backgroundMediaId', MediaDefinition::
class))->
addFlags(new ApiAware()),
(new StringField('background_media_mode', 'backgroundMediaMode'
))->
addFlags(new ApiAware()),
(new StringField('css_class', 'cssClass'
))->
addFlags(new ApiAware()),
(new JsonField('visibility', 'visibility',
[