Table of Contents

Interface IPolymorphismResolver

Namespace
ToSic.Sxc.Render.Polymorphism.Sys
Assembly
ToSic.Sxc.Engines.dll

A polymorphism resolver - which can determine alternate editions for a view / template

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public interface IPolymorphismResolver

Methods

Edition(PolymorphismConfigurationModel, string?, ILog)

Returns the edition to use for a given polymorphism configuration, or null if no edition is found

string? Edition(PolymorphismConfigurationModel config, string? overrule, ILog log)

Parameters

config PolymorphismConfigurationModel

Polymorphism configuration.

overrule string

Optional overrule value; may not be respected, in case the resolver determines insufficient permissions to overrule.

log ILog

Logger is included, so that the services can be super-slim.

Returns

string

The edition to use, or null if no edition is found