-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
547b55e
commit eadc295
Showing
1 changed file
with
9 additions
and
3 deletions.
There are no files selected for viewing
12 changes: 9 additions & 3 deletions
12
Lombiq.HelpfulExtensions/Extensions/Flows/FlowPartShapeTableProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
using OrchardCore.DisplayManagement.Descriptors; | ||
using System.Threading.Tasks; | ||
|
||
namespace Lombiq.HelpfulExtensions.Extensions.Flows; | ||
|
||
internal sealed class FlowPartShapeTableProvider : IShapeTableProvider | ||
{ | ||
public void Discover(ShapeTableBuilder builder) => builder | ||
.Describe("FlowPart") | ||
.OnDisplaying(displaying => displaying.Shape.Metadata.Alternates.Add("Lombiq_HelpfulExtensions_Flows_FlowPart")); | ||
public ValueTask DiscoverAsync(ShapeTableBuilder builder) | ||
{ | ||
builder | ||
.Describe("FlowPart") | ||
.OnDisplaying(displaying => displaying.Shape.Metadata.Alternates.Add("Lombiq_HelpfulExtensions_Flows_FlowPart")); | ||
|
||
return ValueTask.CompletedTask; | ||
} | ||
} |