Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Pickup.php
Go to the documentation of this file.
1 <?php
7 
12 {
18  protected $_code = 'pickup';
19 
23  public function toOptionArray()
24  {
25  $ups = $this->carrierConfig->getCode($this->_code);
26  $arr = [];
27  foreach ($ups as $k => $v) {
28  $arr[] = ['value' => $k, 'label' => __($v['label'])];
29  }
30  return $arr;
31  }
32 }
__()
Definition: __.php:13