Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    ApiContentPathProvider(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 Source

    GetContentPath(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 null for the default culture.

    Returns
    Type Description
    string

    The URL path of the content, or null if no path is available.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX