Log in
Model

Allmethods

Magento\Payment\Model\Config\Source\Allmethods

What it does

This class provides a source model for retrieving all available payment methods in Magento 2.

Developers use it in system configuration XML files to populate dropdown fields with all payment methods, including active, inactive, and sorted options.

It's commonly used in admin configuration forms where administrators need to select from all possible payment methods.

Public Methods

  • toOptionArray()