Interface IHasFlags
Marker interface that indicates the type has support for backoffice flags (presented as icons overlaying the main icon for the entity).
Namespace: Umbraco.Cms.Api.Management.ViewModels
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public interface IHasFlags
Properties
View SourceFlags
Gets the collection of flag for the entity.
Declaration
IEnumerable<FlagModel> Flags { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<FlagModel> |
Id
Gets the unique identifier for the entity.
Declaration
Guid Id { get; }
Property Value
| Type | Description |
|---|---|
| Guid |
Methods
View SourceAddFlag(string)
Adds a flag to the entity with the specified alias.
Declaration
void AddFlag(string alias)
Parameters
| Type | Name | Description |
|---|---|---|
| string | alias |
RemoveFlag(string)
Removes a flag from the entity with the specified alias.
Declaration
void RemoveFlag(string alias)
Parameters
| Type | Name | Description |
|---|---|---|
| string | alias |