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 |
|---|---|---|
| ManifestContentAppDefinition | 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.Object | o | |
| IEnumerable<IReadOnlyUserGroup> | userGroups | The user groups |
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.