internal static HeaderDataObject DataItem(IHeader that)
        {
            var defaultDataItem = new HeaderDataObject(that.HasVortoValue(DataItemProperty) ? that.GetVortoValue <IPublishedContent>(DataItemProperty) : that.GetVortoValue <IPublishedContent>(DataItemProperty, fallbackCultureName: "en-US"));

            return(defaultDataItem);
        }
Beispiel #2
0
 private static HeaderDataObject CachedData(IHeader that)
 {
     return(that.HeaderDataObject = that.HeaderDataObject == null?HeaderDataObject.DataItem(that) : that.HeaderDataObject);
 }