From int languageId to string culture
This commit is contained in:
@@ -36,7 +36,7 @@ namespace Umbraco.Web.PublishedCache
|
||||
IsMember = propertyType.ContentType.ItemType == PublishedItemType.Member;
|
||||
}
|
||||
|
||||
public override bool HasValue(int? languageId = null, string segment = null)
|
||||
public override bool HasValue(string culture = null, string segment = null)
|
||||
=> _sourceValue != null && (!(_sourceValue is string s) || !string.IsNullOrWhiteSpace(s));
|
||||
|
||||
// used to cache the CacheValues of this property
|
||||
@@ -136,9 +136,9 @@ namespace Umbraco.Web.PublishedCache
|
||||
return _interValue;
|
||||
}
|
||||
|
||||
public override object GetSourceValue(int? languageId = null, string segment = null) => _sourceValue;
|
||||
public override object GetSourceValue(string culture = null, string segment = null) => _sourceValue;
|
||||
|
||||
public override object GetValue(int? languageId = null, string segment = null)
|
||||
public override object GetValue(string culture = null, string segment = null)
|
||||
{
|
||||
GetCacheLevels(out var cacheLevel, out var referenceCacheLevel);
|
||||
|
||||
@@ -152,7 +152,7 @@ namespace Umbraco.Web.PublishedCache
|
||||
}
|
||||
}
|
||||
|
||||
public override object GetXPathValue(int? languageId = null, string segment = null)
|
||||
public override object GetXPathValue(string culture = null, string segment = null)
|
||||
{
|
||||
GetCacheLevels(out var cacheLevel, out var referenceCacheLevel);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user