Log in
Model

GroupList

Magento\Payment\Model\ResourceModel\Grid\GroupList

What it does

This class provides a standardized way to retrieve a list of payment method groups as an option array, typically used in admin grid filters or form dropdowns.

Developers would use this class when they need to populate UI elements with available payment methods, such as filtering transactions by payment method in the admin panel.

It implements the ArrayInterface to ensure compatibility with Magento's UI component system.

Public Methods

  • toOptionArray()