Log in
Model

Page

Magento\Cms\Model\Config\Source\Page

What it does

This class provides a list of CMS pages as options for use in admin configuration dropdowns and form selects.

Developers use this class when they need to create a system configuration field or admin form element that allows selection of a CMS page, such as choosing a default landing page or linking to a specific CMS page in module settings.

Public Methods

  • toOptionArray()