Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Allmethods.php
Go to the documentation of this file.
1 <?php
7 
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 }
__construct(\Magento\Payment\Helper\Data $paymentData)
Definition: Allmethods.php:20