Log in
Model

ListPerPage

Magento\Catalog\Model\Config\Source\ListPerPage

What it does

This class provides pagination options for product listing pages in Magento 2's catalog.

Developers use it as a source model in system configuration to define how many products can be displayed per page (e.g., 12, 24, 36).

It converts a comma-separated string of page size options into an array format suitable for admin dropdown menus.

Public Methods

  • toOptionArray()