Gets entity repository to be able to return a mix of object types
This commit is contained in:
@@ -226,11 +226,11 @@ namespace Umbraco.Web.Models.Mapping
|
||||
{
|
||||
switch (entity)
|
||||
{
|
||||
case ContentEntitySlim contentEntity:
|
||||
// NOTE: this case covers both content and media entities
|
||||
return contentEntity.ContentTypeIcon;
|
||||
case MemberEntitySlim memberEntity:
|
||||
case IMemberEntitySlim memberEntity:
|
||||
return memberEntity.ContentTypeIcon.IfNullOrWhiteSpace(Constants.Icons.Member);
|
||||
case IContentEntitySlim contentEntity:
|
||||
// NOTE: this case covers both content and media entities
|
||||
return contentEntity.ContentTypeIcon;
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user