Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    GetContentPath(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 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