18 lines
476 B
C#
18 lines
476 B
C#
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<IList<string>> GetWidgetZonesAsync()
|
|
{
|
|
return Task.FromResult<IList<string>>(new List<string> { "test widget zone" });
|
|
}
|
|
|
|
public Type GetWidgetViewComponent(string widgetZone)
|
|
{
|
|
return typeof(TestWidgetPlugin);
|
|
}
|
|
} |