Skip to content

Commit

Permalink
Hotfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Psichorex committed Dec 21, 2023
1 parent 564414f commit 7a824cd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
using OrchardCore.ContentManagement.Metadata.Builders;
using OrchardCore.ContentManagement.Metadata.Settings;
using System;

namespace OrchardCore.ContentManagement.Metadata.Settings;

public static class ContentTypePartDefinitionBuilderExtensions
{
/// <summary>
/// Sets the type's editor using an <see cref="Enum"/> parameter.
/// Sets the part's editor using an <see cref="Enum"/> parameter.
/// </summary>
public static ContentTypePartDefinitionBuilder WithEditor(this ContentTypePartDefinitionBuilder builder, Enum editor) =>
builder.MergeSettings<ContentTypePartSettings>(x => x.Editor = editor.ToString());
Expand Down

0 comments on commit 7a824cd

Please sign in to comment.