Log in
Model

GridPerPage

Magento\Catalog\Model\Config\Source\GridPerPage

What it does

This class provides configuration options for the number of products displayed per page in grid view mode on catalog pages.

Developers use this class to populate dropdown options in the admin configuration or storefront, allowing merchants or customers to select how many products they want to see per page.

The available options are defined by a comma-separated string passed during construction.

Public Methods

  • toOptionArray()