Table of Contents

Class MetadataTargets

Namespace
ToSic.Eav.DataSources
Assembly
ToSic.Eav.DataSources.dll

Get Target Entities (metadata targets) of the Entities coming into this DataSource

[VisualQuery(NiceName = "Metadata Targets", UiHint = "Get the item's targets (if they are metadata)", Icon = "loyalty", Type = DataSourceType.Lookup, NameId = "afaf73d9-775c-4932-aebd-23e898b1643e", In = new string[] { "Default*" }, DynamicOut = false, ConfigurationType = "7dcd26eb-a70c-4a4f-bb3b-5bd5da304232", HelpLink = "https://go.2sxc.org/DsMetadataTargets")]
[InternalApi_DoNotUse_MayChangeWithoutNotice("WIP")]
public class MetadataTargets : MetadataDataSourceBase, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheKey, ICacheExpiring, ITimestamped, IHasLog, IDataSourceLinkable
Inheritance
MetadataTargets
Implements
Inherited Members

Remarks

Constructors

MetadataTargets(IAppStates, MyServices)

public MetadataTargets(IAppStates appStates, DataSourceBase.MyServices services)

Parameters

appStates IAppStates
services DataSourceBase.MyServices

Properties

ContentTypeName

Optional TypeName restrictions to only get Targets of this Content Type.

[Configuration]
public override string ContentTypeName { get; }

Property Value

string

FilterDuplicates

[Configuration(Fallback = true)]
public bool FilterDuplicates { get; }

Property Value

bool

Remarks

Defaults to true

Methods

SpecificGet(IImmutableList<IEntity>, string)

protected override IEnumerable<IEntity> SpecificGet(IImmutableList<IEntity> originals, string typeName)

Parameters

originals IImmutableList<IEntity>
typeName string

Returns

IEnumerable<IEntity>