Interface IContentAppFactory
Represents a content app factory.
Namespace: Umbraco.Core.Models.ContentEditing
Assembly: Umbraco.Core.dll
Syntax
public interface IContentAppFactory
Methods
View SourceGetContentAppFor(Object, IEnumerable<IReadOnlyUserGroup>)
Gets the content app for an object.
Declaration
ContentApp GetContentAppFor(object source, IEnumerable<IReadOnlyUserGroup> userGroups)
Parameters
Type | Name | Description |
---|---|---|
System.Object | source | The source object. |
System.Collections.Generic.IEnumerable<IReadOnlyUserGroup> | userGroups |
Returns
Type | Description |
---|---|
ContentApp | The content app for the object, or null. |
Remarks
The definition must determine, based on source
, whether
the content app should be displayed or not, and return either a ContentApp
instance, or null.