public virtual IPublishedContent GetById(UmbracoContext umbracoContext, bool preview, Guid nodeKey) { EnsureIdkMap(umbracoContext); var mapAttempt = _idkMap.GetIdForKey(nodeKey, UmbracoObjectTypes.Document); return(mapAttempt ? GetById(umbracoContext, preview, mapAttempt.Result) : null); }
/// <inheritdoc /> public Attempt <int> GetId(Guid key, UmbracoObjectTypes objectType) { return(_idkMap.GetIdForKey(key, objectType)); }