Log in
Helper

Page

Magento\Cms\Helper\Page

What it does

This helper class manages the preparation and rendering of CMS pages in Magento 2.

Developers use it to configure page layouts, apply custom themes, handle custom layout updates, and generate CMS page URLs.

It's commonly used in controllers and observers when displaying or manipulating CMS page content.

Public Methods

  • prepareResultPage()
  • getPageUrl()