mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
39 lines
942 B
PHP
39 lines
942 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
namespace Magento\Checkout\Model\Adminhtml;
|
|
|
|
use Magento\Framework\Option\ArrayInterface;
|
|
|
|
/**
|
|
* BillingAddressDisplayOptions gets list of configuration options for billing address displaying on
|
|
* the Payment step on checkout
|
|
*/
|
|
class BillingAddressDisplayOptions implements ArrayInterface
|
|
{
|
|
/**
|
|
* Return array of options for billing address displaying on checkout payment step
|
|
*
|
|
* @return array:
|
|
* [
|
|
* ['label' => 'Payment Method', 'value' => 0],
|
|
* ['label' => 'Payment Page', 'value' => 1]
|
|
* ]
|
|
*/
|
|
public function toOptionArray()
|
|
{
|
|
return [
|
|
[
|
|
'label' => __('Payment Method'),
|
|
'value' => 0
|
|
],
|
|
[
|
|
'label' => __('Payment Page'),
|
|
'value' => 1
|
|
]
|
|
];
|
|
}
|
|
}
|