ServiceExtensions extension

on
  • ContentPlugin

Methods

contentBuilder(String schemaType) ContentBuilder<ContentItem>?

Available on ContentPlugin, provided by the ServiceExtensions extension

Returns the ContentBuilder for the schemaType of the ContentItem. Returns null if it does not exist.
contentBuilders() List<ContentBuilder<ContentItem>>?

Available on ContentPlugin, provided by the ServiceExtensions extension

Returns a map of all content builders, where the key is the schemaType and the value is the ContentBuilder.
setDefaultLayout({required String schemaType, required LayoutConfiguration<ContentItem> layout, required FromJsonConverter<LayoutConfiguration<ContentItem>> fromJson}) bool

Available on ContentPlugin, provided by the ServiceExtensions extension

Sets the default layout for the schemaType of the ContentItem. Returns true if the layout was set, false otherwise.