Implement content apps code config and manifest

This commit is contained in:
Stephan
2018-09-20 17:22:39 +02:00
parent 7f45727936
commit d6775aa79a
25 changed files with 552 additions and 200 deletions

View File

@@ -0,0 +1,20 @@
namespace Umbraco.Core.Models.ContentEditing
{
/// <summary>
/// Represents a content app definition.
/// </summary>
public interface IContentAppDefinition
{
/// <summary>
/// Gets the content app for an object.
/// </summary>
/// <param name="source">The source object.</param>
/// <returns>The content app for the object, or null.</returns>
/// <remarks>
/// <para>The definition must determine, based on <paramref name="source"/>, whether
/// the content app should be displayed or not, and return either a <see cref="ContentApp"/>
/// instance, or null.</para>
/// </remarks>
ContentApp GetContentAppFor(object source);
}
}