Log in
Model

Page

Magento\Cms\Model\Config\Source\Page

What it does

This class provides a source of CMS pages as an array of options, commonly used in system configuration fields, forms, or admin grids where administrators need to select from available CMS pages.

It retrieves all CMS pages from the database and formats them as key-value pairs (ID and title) suitable for dropdown menus or multi-select fields.

Public Methods

  • toOptionArray()