Interface IFlagProvider
Defines operation for the provision of presentation flags for item, tree and collection nodes.
Namespace: Umbraco.Cms.Api.Management.Services.Flags
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public interface IFlagProvider
Methods
View SourceCanProvideFlags<TItem>()
Gets a value indicating whether this provider can provide flags for the specified item type.
Declaration
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
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. |