V10: Fix NoopPublishedValuefallback varation context member not implemented (#14227)

* Added missing VariationContextAccessor

* Fixed identation
This commit is contained in:
Andreas Zerbst
2023-05-10 14:31:40 +02:00
committed by GitHub
parent 4cdab08910
commit 5b73fc19ee

View File

@@ -7,7 +7,15 @@ namespace Umbraco.Cms.Core.Models.PublishedContent;
/// <para>This is for tests etc - does not implement fallback at all.</para>
/// </remarks>
public class NoopPublishedValueFallback : IPublishedValueFallback
{
/// <inheritdoc />
public IVariationContextAccessor VariationContextAccessor
{
get => new ThreadCultureVariationContextAccessor();
set { }
}
/// <inheritdoc />
public bool TryGetValue(IPublishedProperty property, string? culture, string? segment, Fallback fallback, object? defaultValue, out object? value)
{