Interface IContentUrlGenerator
Signature for component that is used to generate urls to content instances.
Namespace: EPiServer.Core.Routing.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface IContentUrlGenerator
Methods
Generate(ContentReference, UrlGeneratorOptions)
Generates an url for a content instance or null if no url could be constructed.
Declaration
GeneratedUrl Generate(ContentReference contentLink, UrlGeneratorOptions options)
Parameters
Type | Name | Description |
---|---|---|
ContentReference | contentLink | A reference for the content for which to generate an url |
UrlGeneratorOptions | options | Options that can be used to specify how the url should be generated, for example for which language version |
Returns
Type | Description |
---|---|
GeneratedUrl | A result containing the generated url or null if no url could be generated |