Merge pull request #1038 from umbraco/temp-U4-7768
U4-7768 - Fixes validation issue with new CTs and invalid server side…
This commit is contained in:
@@ -266,6 +266,22 @@ namespace Umbraco.Core.Services
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets all content type aliases
|
||||
/// </summary>
|
||||
/// <param name="objectTypes">
|
||||
/// If this list is empty, it will return all content type aliases for media, members and content, otherwise
|
||||
/// it will only return content type aliases for the object types specified
|
||||
/// </param>
|
||||
/// <returns></returns>
|
||||
public IEnumerable<string> GetAllContentTypeAliases(params Guid[] objectTypes)
|
||||
{
|
||||
using (var repository = RepositoryFactory.CreateContentTypeRepository(UowProvider.GetUnitOfWork()))
|
||||
{
|
||||
return repository.GetAllContentTypeAliases(objectTypes);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Copies a content type as a child under the specified parent if specified (otherwise to the root)
|
||||
/// </summary>
|
||||
|
||||
@@ -44,6 +44,16 @@ namespace Umbraco.Core.Services
|
||||
/// <returns></returns>
|
||||
IEnumerable<string> GetAllPropertyTypeAliases();
|
||||
|
||||
/// <summary>
|
||||
/// Gets all content type aliases
|
||||
/// </summary>
|
||||
/// <param name="objectTypes">
|
||||
/// If this list is empty, it will return all content type aliases for media, members and content, otherwise
|
||||
/// it will only return content type aliases for the object types specified
|
||||
/// </param>
|
||||
/// <returns></returns>
|
||||
IEnumerable<string> GetAllContentTypeAliases(params Guid[] objectTypes);
|
||||
|
||||
/// <summary>
|
||||
/// Copies a content type as a child under the specified parent if specified (otherwise to the root)
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user