Class ManifestContentAppFactory
Represents a content app factory, for content apps parsed from the manifest.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Manifest
Assembly: Umbraco.Core.dll
Syntax
public class ManifestContentAppFactory : IContentAppFactory
Constructors
View SourceManifestContentAppFactory(ManifestContentAppDefinition, IIOHelper)
Declaration
public ManifestContentAppFactory(ManifestContentAppDefinition definition, IIOHelper ioHelper)
Parameters
Type | Name | Description |
---|---|---|
Manifest |
definition | |
IIOHelper | ioHelper |
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. |
o | |
IEnumerable<IRead |
userGroups | The user groups |
Returns
Type | Description |
---|---|
Content |
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 Content