/**
  * {@inheritdoc}
  */
 protected function convertValue($value)
 {
     $result = $this->getBackendData($value);
     $data = isset($result['data']) ? $result['data'] : null;
     $unit = $result['unit'];
     if ($data && $unit) {
         $formattedData = $this->formatter->format($data);
         return $this->getTemplate()->render(['data' => $formattedData, 'unit' => $unit]);
     }
 }
 /**
  * {@inheritdoc}
  */
 protected function convertValue($value)
 {
     $data = $this->getBackendData($value);
     $prices = [];
     foreach ($data as $price) {
         if (isset($price['data']) && $price['data'] !== null) {
             $formattedPrice = $this->formatter->format($price['data']);
             $prices[] = sprintf('%s %s', $formattedPrice, Intl::getCurrencyBundle()->getCurrencySymbol($price['currency']));
         }
     }
     return implode(', ', $prices);
 }
 /**
  * {@inheritdoc}
  */
 protected function convertValue($value)
 {
     $result = $this->getBackendData($value);
     return $this->formatter->format($result);
 }