/**
  * @param array        $drupalProduct
  * @param ProductValue $productValue
  * @param string       $field
  * @param array        $context
  */
 public function normalize(array &$drupalProduct, $productValue, $field, array $context = array())
 {
     $text = $productValue->getText();
     $attribute = $productValue->getAttribute();
     if (null !== $text) {
         $drupalProduct['values'][$field][$context['locale']][] = array('type' => 'pim_catalog_textarea', 'value' => $text);
     }
 }
 /**
  * @param array        $drupalProduct
  * @param ProductValue $productValue
  * @param string       $field
  * @param array        $context
  */
 public function normalize(array &$drupalProduct, $productValue, $field, array $context = array())
 {
     $text = $productValue->getText();
     if (is_null($text)) {
         $text = $productValue->getVarchar();
     }
     if (null !== $text) {
         $drupalProduct['values'][$field][$context['locale']][] = array('type' => 'pim_catalog_text', 'value' => $text);
     }
 }
 /**
  * {@inheritDoc}
  */
 public function getText()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getText', array());
     return parent::getText();
 }