Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

TestWidgetPlugin.cs

using Nop.Services.Cms;
using Nop.Services.Plugins;

namespace Nop.Tests.Nop.Web.Tests.Public;

public class TestWidgetPlugin : BasePlugin, IWidgetPlugin
{
    public bool HideInWidgetList { get; } = false;
    public Task> GetWidgetZonesAsync()
    {
        return Task.FromResult>(new List { "test widget zone" });
    }

    public Type GetWidgetViewComponent(string widgetZone)
    {
        return typeof(TestWidgetPlugin);
    }
}