Log in
Model

WidgetDirective

Magento\PageBuilder\Model\Stage\Renderer\WidgetDirective

What it does

This class renders widget directives for the Page Builder stage preview in the Magento admin panel.

When a content editor places a widget in Page Builder, this renderer processes the widget directive syntax and converts it into actual HTML for display in the visual editor.

Developers would encounter this when extending Page Builder's widget rendering capabilities or troubleshooting widget preview issues.

Public Methods

  • render()