Click or drag to resize
WidgetController Constructor (ICurrentPageRetriever)

Note: This API is now obsolete.

Creates an instance of WidgetController class.

Namespace: Kentico.PageBuilder.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use WidgetController(IPageBuilderDataContextRetriever pageBuilderDataContextRetriever) constructor instead.")]
protected WidgetController(
	ICurrentPageRetriever currentPageRetriever
)

Parameters

currentPageRetriever
Type: Kentico.PageBuilder.Web.MvcICurrentPageRetriever
Retriever for current page where is the widget used.
Remarks
Use this constructor for tests to handle dependencies.
See Also