Skip to content

Instantly share code, notes, and snippets.

[ServiceConfiguration(typeof(IContentQuery))]
public class SiteGetChildrenQuery : GetChildrenQuery
{
private readonly LanguageSelectorFactory _languageSelectorFactory;
public SiteGetChildrenQuery(IContentQueryHelper queryHelper, IContentRepository contentRepository, LanguageSelectorFactory languageSelectorFactory)
: base(queryHelper, contentRepository, languageSelectorFactory) { _languageSelectorFactory = languageSelectorFactory; }
public override int Rank => 100;
private List<int> WhiteListedContentIds => new List<int> { 1 };