Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ShippingMethodFormatter.php
Go to the documentation of this file.
1 <?php
7 
9 
17 {
24  {
25  $data = [
26  $shippingMethod->getCarrierTitle(),
27  $shippingMethod->getMethodTitle(),
28  ];
29  $data = array_filter($data);
30  $formatted = join(' - ', $data);
31  return $formatted;
32  }
33 }
$shippingMethod
Definition: popup.phtml:12