Log in
Helper

Page

Magento\Cms\Helper\Page

What it does

This helper class manages CMS page rendering and URL generation in Magento 2.

Developers use it to prepare and configure result pages with proper layouts, themes, and custom design settings for CMS pages.

It's commonly used in CMS controllers to handle page display logic, apply custom layouts, and generate direct URLs to CMS pages.

Public Methods

  • prepareResultPage()
  • getPageUrl()