BillingAddressDisplayOptions.php 942 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Checkout\Model\Adminhtml;
  7. use Magento\Framework\Option\ArrayInterface;
  8. /**
  9. * BillingAddressDisplayOptions gets list of configuration options for billing address displaying on
  10. * the Payment step on checkout
  11. */
  12. class BillingAddressDisplayOptions implements ArrayInterface
  13. {
  14. /**
  15. * Return array of options for billing address displaying on checkout payment step
  16. *
  17. * @return array:
  18. * [
  19. * ['label' => 'Payment Method', 'value' => 0],
  20. * ['label' => 'Payment Page', 'value' => 1]
  21. * ]
  22. */
  23. public function toOptionArray()
  24. {
  25. return [
  26. [
  27. 'label' => __('Payment Method'),
  28. 'value' => 0
  29. ],
  30. [
  31. 'label' => __('Payment Page'),
  32. 'value' => 1
  33. ]
  34. ];
  35. }
  36. }