Log in
Model

ListPerPage

Magento\Catalog\Model\Config\Source\ListPerPage

What it does

This class provides configuration options for the number of products displayed per page in catalog list views.

Developers use this as a source model in system configuration to populate dropdown options for items-per-page settings.

It converts a comma-separated string of numeric values into an array format suitable for admin configuration fields.

Public Methods

  • toOptionArray()