Class ContentTypeBaseExtensions
Provides extensions methods for IContentTypeBase.
Inheritance
object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class ContentTypeBaseExtensions
Methods
View SourceGetItemType(IContentTypeBase)
Gets the published item type for the content type.
Declaration
public static PublishedItemType GetItemType(this IContentTypeBase contentType)
Parameters
| Type | Name | Description |
|---|---|---|
| IContentTypeBase | contentType | The content type. |
Returns
| Type | Description |
|---|---|
| PublishedItemType | The PublishedItemType for the content type. |
WasPropertyTypeVariationChanged(IContentTypeBase)
Used to check if any property type was changed between variant/invariant
Declaration
public static bool WasPropertyTypeVariationChanged(this IContentTypeBase contentType)
Parameters
| Type | Name | Description |
|---|---|---|
| IContentTypeBase | contentType |
Returns
| Type | Description |
|---|---|
| bool |