Log in
Model

Preview

Magento\PageBuilder\Model\Stage\Preview

What it does

This class manages Page Builder's preview mode functionality, which allows administrators to see how content will appear on the frontend while editing in the admin panel.

It handles environment emulation by temporarily switching from the admin area to the frontend area, applying the correct store theme and settings, then executing a callback to render the preview content.

Public Methods

  • getPreviewArea()
  • startPreviewMode()
  • isPreviewMode()