Class ApiPropertyRenderer
Default implementation of IApiPropertyRenderer that renders property values for the Delivery API.
Inheritance
object
Namespace: Umbraco.Cms.Core.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public class ApiPropertyRenderer : IApiPropertyRenderer
Constructors
View SourceApiPropertyRenderer(IPublishedValueFallback)
Initializes a new instance of the ApiPropertyRenderer class.
Declaration
public ApiPropertyRenderer(IPublishedValueFallback publishedValueFallback)
Parameters
| Type | Name | Description |
|---|---|---|
| IPublishedValueFallback | publishedValueFallback | The published value fallback service. |
Methods
View SourceGetPropertyValue(IPublishedProperty, bool)
Gets the rendered value of a property for the Delivery API response.
Declaration
public object? GetPropertyValue(IPublishedProperty property, bool expanding)
Parameters
| Type | Name | Description |
|---|---|---|
| IPublishedProperty | property | The published property to render. |
| bool | expanding | Whether the property value should be expanded. |
Returns
| Type | Description |
|---|---|
| object | The rendered property value. |