Introduce IPublishedContentType
This commit is contained in:
@@ -199,7 +199,7 @@ namespace Umbraco.Web.PublishedCache
|
||||
/// </summary>
|
||||
/// <param name="id">The content type unique identifier.</param>
|
||||
/// <returns>The content type, or null.</returns>
|
||||
PublishedContentType GetContentType(int id);
|
||||
IPublishedContentType GetContentType(int id);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a content type identified by its alias.
|
||||
@@ -207,13 +207,13 @@ namespace Umbraco.Web.PublishedCache
|
||||
/// <param name="alias">The content type alias.</param>
|
||||
/// <returns>The content type, or null.</returns>
|
||||
/// <remarks>The alias is case-insensitive.</remarks>
|
||||
PublishedContentType GetContentType(string alias);
|
||||
IPublishedContentType GetContentType(string alias);
|
||||
|
||||
/// <summary>
|
||||
/// Gets contents of a given content type.
|
||||
/// </summary>
|
||||
/// <param name="contentType">The content type.</param>
|
||||
/// <returns>The contents.</returns>
|
||||
IEnumerable<IPublishedContent> GetByContentType(PublishedContentType contentType);
|
||||
IEnumerable<IPublishedContent> GetByContentType(IPublishedContentType contentType);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user