Expose "expanding" state in API value conversion (#14312)
* Expose "expanding" state in API value conversion * Add unit test * Add non-breaking and obsoletion * Add compat suppressions
This commit is contained in:
@@ -228,7 +228,7 @@ internal class PublishedElementPropertyBase : PublishedPropertyBase
|
||||
{
|
||||
CacheValues cacheValues = GetCacheValues(cacheLevel);
|
||||
|
||||
object? GetDeliveryApiObject() => PropertyType.ConvertInterToDeliveryApiObject(Element, referenceCacheLevel, GetInterValue(), IsPreviewing);
|
||||
object? GetDeliveryApiObject() => PropertyType.ConvertInterToDeliveryApiObject(Element, referenceCacheLevel, GetInterValue(), IsPreviewing, expanding);
|
||||
return expanding
|
||||
? GetDeliveryApiExpandedObject(cacheValues, GetDeliveryApiObject)
|
||||
: GetDeliveryApiDefaultObject(cacheValues, GetDeliveryApiObject);
|
||||
|
||||
Reference in New Issue
Block a user