Log in
Model

TypeList

Magento\Payment\Model\ResourceModel\Grid\TypeList

What it does

This class provides a list of available payment methods in Magento 2 as an option array, typically used for dropdown menus or select fields in admin grids and forms.

Developers use this class when they need to display a filterable or selectable list of payment method types in the admin panel, such as in the sales transaction grid or payment configuration screens.

Public Methods

  • toOptionArray()