/**
  * {@inheritdoc}
  */
 public function prepareValueFormOptions(ProductValueInterface $value)
 {
     $options = parent::prepareValueFormOptions($value);
     $options['widget'] = 'single_text';
     $options['input'] = 'datetime';
     return $options;
 }
 /**
  * {@inheritdoc}
  */
 public function prepareValueFormOptions(ProductValueInterface $value)
 {
     $referenceDataConf = $this->referenceDataRegistry->get($value->getAttribute()->getReferenceDataName());
     $options = parent::prepareValueFormOptions($value);
     $options['class'] = $referenceDataConf->getClass();
     return $options;
 }
 /**
  * {@inheritdoc}
  */
 public function prepareValueFormOptions(ProductValueInterface $value)
 {
     $options = parent::prepareValueFormOptions($value);
     $attribute = $value->getAttribute();
     $options['class'] = 'PimCatalogBundle:AttributeOption';
     $options['collection_id'] = $attribute->getId();
     $options['multiple'] = true;
     $options['minimum_input_length'] = $attribute->getMinimumInputLength();
     return $options;
 }
 /**
  * {@inheritdoc}
  */
 public function prepareValueFormOptions(ProductValueInterface $value)
 {
     $unitsList = $this->manager->getUnitSymbolsForFamily($value->getAttribute()->getMetricFamily());
     $unitNames = array_combine(array_keys($unitsList), array_keys($unitsList));
     $units = array_map(function ($unit) {
         return $this->translator->trans($unit, [], 'measures');
     }, $unitNames);
     $options = array_merge(parent::prepareValueFormOptions($value), array('units' => $units, 'default_unit' => $value->getAttribute()->getDefaultMetricUnit(), 'family' => $value->getAttribute()->getMetricFamily()));
     $options['default_unit'] = array($options['default_unit']);
     return $options;
 }
 /**
  * {@inheritdoc}
  */
 public function prepareValueFormOptions(ProductValueInterface $value)
 {
     return array_merge(parent::prepareValueFormOptions($value), ['type' => 'pim_enrich_price', 'allow_add' => true, 'allow_delete' => false, 'by_reference' => false]);
 }
 /**
  * {@inheritdoc}
  */
 public function prepareValueFormOptions(ProductValueInterface $value)
 {
     $options = parent::prepareValueFormOptions($value);
     $options['decimals_allowed'] = $value->getAttribute()->isDecimalsAllowed();
     return $options;
 }
 /**
  * {@inheritdoc}
  */
 public function prepareValueFormOptions(ProductValueInterface $value)
 {
     $options = array_merge(parent::prepareValueFormOptions($value), array('units' => $this->manager->getUnitSymbolsForFamily($value->getAttribute()->getMetricFamily()), 'default_unit' => $value->getAttribute()->getDefaultMetricUnit(), 'family' => $value->getAttribute()->getMetricFamily()));
     $options['default_unit'] = array($options['default_unit']);
     return $options;
 }