Webiant Logo Webiant Logo
  1. No results found.

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

IWidgetModelFactory.cs

using Nop.Web.Framework.Models.Cms;

namespace Nop.Web.Framework.Factories;

/// <summary>
/// Represents the interface of the widget model factory
/// </summary>
public partial interface IWidgetModelFactory
{
    /// <summary>
    /// Get render the widget models
    /// </summary>
    /// <param name="widgetZone">Name of widget zone</param>
    /// <param name="additionalData">Additional data object</param>
    /// <param name="useCache">Value indicating whether to get widget models from cache</param>
    /// <returns>
    /// A task that represents the asynchronous operation
    /// The task result contains the list of the render widget models
    /// </returns>
    Task<List<RenderWidgetModel>> PrepareRenderWidgetModelAsync(string widgetZone, object additionalData = null, bool useCache = true);
}