Class ApiContentPathProvider
Default implementation of IApiContentPathProvider that provides content paths for the Delivery API.
Inheritance
object
Namespace: Umbraco.Cms.Core.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public class ApiContentPathProvider : IApiContentPathProvider
Remarks
This class is left unsealed on purpose so it is extendable.
Constructors
View SourceApiContentPathProvider(IPublishedUrlProvider)
Initializes a new instance of the ApiContentPathProvider class.
Declaration
public ApiContentPathProvider(IPublishedUrlProvider publishedUrlProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IPublishedUrlProvider | publishedUrlProvider | The published URL provider. |
Methods
View SourceGetContentPath(IPublishedContent, string?)
Gets the URL path for the specified published content and culture.
Declaration
public virtual 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 |