Interface IPublishedStatusFilteringService
Provides filtering operations to determine which published content items are available for display.
Namespace: Umbraco.Cms.Core.Services.Navigation
Assembly: Umbraco.Core.dll
Syntax
public interface IPublishedStatusFilteringService
Methods
View SourceFilterAvailable(IEnumerable<Guid>, string?)
Filters a collection of candidate content keys to return only those that are available for display.
Declaration
IEnumerable<IPublishedContent> FilterAvailable(IEnumerable<Guid> candidateKeys, string? culture)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Guid> | candidateKeys | The collection of content keys to filter. |
| string | culture | The culture to filter by, or |
Returns
| Type | Description |
|---|---|
| IEnumerable<IPublishedContent> | A collection of IPublishedContent items that are available for display. |
Unfiltered(IEnumerable<Guid>)
Returns content for a collection of candidate content keys.
Declaration
[Obsolete("This is an intermediate solution to avoid breaking changes. Use the IPublishedContentCache to get published content by key. Scheduled for removal in V19.")]
IEnumerable<IPublishedContent> Unfiltered(IEnumerable<Guid> candidateKeys)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Guid> | candidateKeys | The collection of content keys to return. |
Returns
| Type | Description |
|---|---|
| IEnumerable<IPublishedContent> | A collection of IPublishedContent items that are available for display. |