Webiant Logo Webiant Logo
  1. No results found.

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

IWidgetPluginManager.cs

using Nop.Core.Domain.Customers;
using Nop.Services.Plugins;

namespace Nop.Services.Cms;

/// 
/// Represents a widget plugin manager
/// 
public partial interface IWidgetPluginManager : IPluginManager
{
    /// 
    /// Load active widgets
    /// 
    /// Filter by customer; pass null to load all plugins
    /// Filter by store; pass 0 to load all plugins
    /// Widget zone; pass null to load all plugins
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the list of active widget
    /// 
    Task> LoadActivePluginsAsync(Customer customer = null, int storeId = 0, string widgetZone = null);

    /// 
    /// Check whether the passed widget is active
    /// 
    /// Widget to check
    /// Result
    bool IsPluginActive(IWidgetPlugin widget);

    /// 
    /// Check whether the widget with the passed system name is active
    /// 
    /// System name of widget to check
    /// Filter by customer; pass null to load all plugins
    /// Filter by store; pass 0 to load all plugins
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the result
    /// 
    Task IsPluginActiveAsync(string systemName, Customer customer = null, int storeId = 0);
}