Files
Umbraco-CMS/src/Umbraco.Core/PropertyEditors/IPropertyIndexValueFactory.cs

25 lines
1.1 KiB
C#
Raw Normal View History

using System.Collections.Generic;
using Umbraco.Cms.Core.Models;
namespace Umbraco.Cms.Core.PropertyEditors
{
/// <summary>
2018-12-05 17:34:34 +01:00
/// Represents a property index value factory.
/// </summary>
2018-12-05 12:57:23 +01:00
public interface IPropertyIndexValueFactory
{
2018-12-05 12:57:23 +01:00
/// <summary>
/// Gets the index values for a property.
/// </summary>
2018-12-07 09:03:36 +01:00
/// <remarks>
/// <para>Returns key-value pairs, where keys are indexed field names. By default, that would be the property alias,
/// and there would be only one pair, but some implementations (see for instance the grid one) may return more than
/// one pair, with different indexed field names.</para>
/// <para>And then, values are an enumerable of objects, because each indexed field can in turn have multiple
/// values. By default, there would be only one object: the property value. But some implementations may return
/// more than one value for a given field.</para>
/// </remarks>
IEnumerable<KeyValuePair<string, IEnumerable<object?>>> GetIndexValues(IProperty property, string? culture, string? segment, bool published);
}
}