Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SimpleActionOptionsProvider.php
Go to the documentation of this file.
1 <?php
7 
9 {
13  public function toOptionArray()
14  {
15  return [
16  [
17  'label' => __('Apply as percentage of original'),
18  'value' => 'by_percent'
19  ],
20  [
21  'label' => __('Apply as fixed amount'),
22  'value' => 'by_fixed'
23  ],
24  [
25  'label' => __('Adjust final price to this percentage'),
26  'value' => 'to_percent'
27  ],
28  [
29  'label' => __('Adjust final price to discount value'),
30  'value' => 'to_fixed'
31  ]
32  ];
33  }
34 }
__()
Definition: __.php:13