Log in
Model

ListMode

Magento\Catalog\Model\Config\Source\ListMode

What it does

This class provides configuration options for product list display modes in catalog pages.

Developers use it in system configuration settings to allow store administrators to choose how products are displayed (grid view, list view, or both with a default preference).

It implements ArrayInterface to supply options for dropdown menus in the admin panel.

Public Methods

  • toOptionArray()