Class ManifestContentAppFactory
Represents a content app factory, for content apps parsed from the manifest.
Inheritance
System.Object
Namespace: Umbraco.Core.Manifest
Assembly: Umbraco.Core.dll
Syntax
public class ManifestContentAppFactory : IContentAppFactory
Constructors
View SourceManifestContentAppFactory(ManifestContentAppDefinition)
Declaration
public ManifestContentAppFactory(ManifestContentAppDefinition definition)
Parameters
Type | Name | Description |
---|---|---|
ManifestContentAppDefinition | definition |
Methods
View SourceGetContentAppFor(Object, IEnumerable<IReadOnlyUserGroup>)
Gets the content app for an object.
Declaration
public ContentApp GetContentAppFor(object o, IEnumerable<IReadOnlyUserGroup> userGroups)
Parameters
Type | Name | Description |
---|---|---|
System.Object | o | |
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.