Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-payment
Model
Config
Source
Allmethods.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Payment\Model\Config\Source
;
7
8
class
Allmethods
implements
\Magento\Framework\Option\ArrayInterface
9
{
15
protected
$_paymentData
;
16
20
public
function
__construct
(\
Magento
\Payment\Helper\Data $paymentData)
21
{
22
$this->_paymentData = $paymentData;
23
}
24
28
public
function
toOptionArray
()
29
{
30
return
$this->_paymentData->getPaymentMethodList(
true
,
true
,
true
);
31
}
32
}
Magento\Framework\Option\ArrayInterface
Definition:
ArrayInterface.php:11
Magento\Payment\Model\Config\Source
Definition:
Allmethods.php:6
Magento\Payment\Model\Config\Source\Allmethods\__construct
__construct(\Magento\Payment\Helper\Data $paymentData)
Definition:
Allmethods.php:20
Magento
Magento\Payment\Model\Config\Source\Allmethods\$_paymentData
$_paymentData
Definition:
Allmethods.php:15
Magento\Payment\Model\Config\Source\Allmethods
Definition:
Allmethods.php:8
Magento\Payment\Model\Config\Source\Allmethods\toOptionArray
toOptionArray()
Definition:
Allmethods.php:28