Class HasPendingChangesFlagProvider
Implements a IFlagProvider that provides flags for documents that have pending changes.
Inheritance
object
Namespace: Umbraco.Cms.Api.Management.Services.Flags
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public class HasPendingChangesFlagProvider : IFlagProvider
Methods
View SourceCanProvideFlags<TItem>()
Gets a value indicating whether this provider can provide flags for the specified item type.
Declaration
public bool CanProvideFlags<TItem>() where TItem : IHasFlags
Returns
| Type | Description |
|---|---|
| bool |
Type Parameters
| Name | Description |
|---|---|
| TItem | Type of view model supporting flags. |
PopulateFlagsAsync<TItem>(IEnumerable<TItem>)
Populates the provided item view models with flags.
Declaration
public Task PopulateFlagsAsync<TItem>(IEnumerable<TItem> items) where TItem : IHasFlags
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<TItem> | items |
Returns
| Type | Description |
|---|---|
| Task |
Type Parameters
| Name | Description |
|---|---|
| TItem | Type of item view model supporting flags. |