mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
#20309: Surfacing method from PlacementFileParser to parse placement texts.
Work Item: 20309
This commit is contained in:
@@ -12,6 +12,7 @@ namespace Orchard.DisplayManagement.Descriptors.ShapePlacementStrategy {
|
||||
/// </summary>
|
||||
public interface IPlacementFileParser : IDependency {
|
||||
PlacementFile Parse(string virtualPath);
|
||||
PlacementFile ParseText(string placementText);
|
||||
}
|
||||
|
||||
|
||||
@@ -37,11 +38,11 @@ namespace Orchard.DisplayManagement.Descriptors.ShapePlacementStrategy {
|
||||
}
|
||||
|
||||
var placementText = _webSiteFolder.ReadFile(virtualPath);
|
||||
return ParseImplementation(virtualPath, placementText);
|
||||
return ParseText(placementText);
|
||||
});
|
||||
}
|
||||
|
||||
private PlacementFile ParseImplementation(string virtualPath, string placementText) {
|
||||
public PlacementFile ParseText(string placementText) {
|
||||
if (placementText == null)
|
||||
return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user