/**
  * {@inheritdoc}
  */
 public function getEndValue(Entity $entity, $field)
 {
     if ($field == 'tax') {
         $tax = $this->get('helper.tax')->get($entity->getTax());
         if ($tax) {
             return $tax->name;
         }
     }
     if ($field == 'unit') {
         $unit = $this->get('helper.measureUnit')->name($entity->getUnit());
         if ($unit) {
             return $unit;
         }
     }
     if ($field == 'sellStart') {
         return $this->datetime()->dateShort($entity->getSellStart());
     }
     if ($field == 'sellEnd') {
         return $this->datetime()->dateShort($entity->getSellEnd());
     }
     if ($field == 'supportStart') {
         return $this->datetime()->dateShort($entity->getSupportStart());
     }
     if ($field == 'supportEnd') {
         return $this->datetime()->dateShort($entity->getSupportEnd());
     }
     if ($field == 'sellAllowed') {
         return $entity->getSellAllowed() ? $this->t('syes') : $this->t('sno');
     }
     if ($field == 'owner') {
         $user = $this->repo('User', 'User')->find($entity->getOwner());
         if ($user) {
             return $user->getName() . ' (ID:' . $entity->getOwner() . ')';
         } else {
             return $entity->getOwner();
         }
     }
     return parent::getEndValue($entity, $field);
 }