Interface IPublishedUrlInfoProvider
Provides URL information for published content items.
Namespace: Umbraco.Cms.Core.Routing
Assembly: Umbraco.Core.dll
Syntax
public interface IPublishedUrlInfoProvider
Methods
View SourceGetAllAsync(IContent)
Gets all published urls for a content item.
Declaration
Task<ISet<UrlInfo>> GetAllAsync(IContent content)
Parameters
| Type | Name | Description |
|---|---|---|
| IContent | content | The content to get urls for. |
Returns
| Type | Description |
|---|---|
| Task<ISet<UrlInfo>> | Set of all published url infos. |
GetAllAsync(IContent, string?)
Gets the published urls for a content item, optionally restricted to a single culture.
Declaration
Task<ISet<UrlInfo>> GetAllAsync(IContent content, string? culture)
Parameters
| Type | Name | Description |
|---|---|---|
| IContent | content | The content to get urls for. |
| string | culture | The culture to restrict variant content urls to, or |
Returns
| Type | Description |
|---|---|
| Task<ISet<UrlInfo>> | Set of published url infos. |