Interface IApiContentPathProvider
Defines a provider that retrieves the URL path of content items for the Delivery API.
Namespace: Umbraco.Cms.Core.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public interface IApiContentPathProvider
Methods
View SourceGetContentPath(IPublishedContent, string?)
Gets the URL path for the specified published content and culture.
Declaration
string? GetContentPath(IPublishedContent content, string? culture)
Parameters
| Type | Name | Description |
|---|---|---|
| IPublishedContent | content | The published content to get the path for. |
| string | culture | The culture to use for the path, or |
Returns
| Type | Description |
|---|---|
| string | The URL path of the content, or |