Log in
Model

Widget

Magento\Widget\Model\ResourceModel\Widget

What it does

This resource model manages database operations for widget data, specifically loading pre-configured widget settings from the 'widget' table.

Developers would use this when retrieving stored widget configurations, though it's deprecated as widget data has been moved to XML files (widget.xml).

The main method loadPreconfiguredWidget() fetches widget parameters from the database and unserializes them for use.

Public Methods

  • loadPreconfiguredWidget()