/**
  * {@inheritdoc}
  */
 public function getConfigurationFields()
 {
     return array_merge(parent::getConfigurationFields(), $this->attributeCodeMappingMerger->getConfigurationField());
 }
 /**
  * Verify if the prestashop attribute id is null else add the attribute to the attribute set.
  *
  * @param integer           $prestashopAttributeId
  * @param AbstractAttribute $pimAttribute
  */
 protected function manageAttributeSet($prestashopAttributeId, $pimAttribute)
 {
     if ($this->attributeIdMappingMerger->getMapping()->getSource($prestashopAttributeId) != $pimAttribute->getCode()) {
         $this->addAttributeToAttributeSet($prestashopAttributeId, $pimAttribute);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function getConfigurationFields()
 {
     return array_merge(parent::getConfigurationFields(), ['defaultLocale' => ['type' => 'choice', 'options' => ['choices' => $this->localeManager->getLocaleChoices(), 'required' => true, 'attr' => ['class' => 'select2'], 'help' => 'pim_prestashop_connector.export.defaultLocale.help', 'label' => 'pim_prestashop_connector.export.defaultLocale.label']], 'website' => ['type' => 'text', 'options' => ['required' => true, 'help' => 'pim_prestashop_connector.export.website.help', 'label' => 'pim_prestashop_connector.export.website.label']]], $this->storeViewMappingMerger->getConfigurationField());
 }
 /**
  * {@inheritdoc}
  */
 public function getConfigurationFields()
 {
     return array_merge(parent::getConfigurationFields(), ['channel' => ['type' => 'choice', 'options' => ['choices' => $this->channelManager->getChannelChoices(), 'required' => true, 'help' => 'pim_prestashop_connector.export.channel.help', 'label' => 'pim_prestashop_connector.export.channel.label']], 'enabled' => ['type' => 'switch', 'options' => ['required' => true, 'help' => 'pim_prestashop_connector.export.enabled.help', 'label' => 'pim_prestashop_connector.export.enabled.label']], 'visibility' => ['type' => 'text', 'options' => ['required' => true, 'help' => 'pim_prestashop_connector.export.visibility.help', 'label' => 'pim_prestashop_connector.export.visibility.label']], 'variantMemberVisibility' => ['type' => 'text', 'options' => ['required' => true, 'help' => 'pim_prestashop_connector.export.variant_member_visibility.help', 'label' => 'pim_prestashop_connector.export.variant_member_visibility.label']], 'currency' => ['type' => 'choice', 'options' => ['choices' => $this->currencyManager->getCurrencyChoices(), 'required' => true, 'help' => 'pim_prestashop_connector.export.currency.help', 'label' => 'pim_prestashop_connector.export.currency.label', 'attr' => ['class' => 'select2']]], 'smallImageAttribute' => ['type' => 'choice', 'options' => ['choices' => $this->attributeManager->getImageAttributeChoice(), 'help' => 'pim_prestashop_connector.export.smallImageAttribute.help', 'label' => 'pim_prestashop_connector.export.smallImageAttribute.label', 'attr' => ['class' => 'select2']]], 'baseImageAttribute' => ['type' => 'choice', 'options' => ['choices' => $this->attributeManager->getImageAttributeChoice(), 'help' => 'pim_prestashop_connector.export.baseImageAttribute.help', 'label' => 'pim_prestashop_connector.export.baseImageAttribute.label', 'attr' => ['class' => 'select2']]], 'thumbnailAttribute' => ['type' => 'choice', 'options' => ['choices' => $this->attributeManager->getImageAttributeChoice(), 'help' => 'pim_prestashop_connector.export.thumbnailAttribute.help', 'label' => 'pim_prestashop_connector.export.thumbnailAttribute.label', 'attr' => ['class' => 'select2']]], 'urlKey' => ['type' => 'checkbox', 'options' => ['help' => 'pim_prestashop_connector.export.urlKey.help', 'label' => 'pim_prestashop_connector.export.urlKey.label']], 'skuFirst' => ['type' => 'checkbox', 'options' => ['help' => 'pim_prestashop_connector.export.skuFirst.help', 'label' => 'pim_prestashop_connector.export.skuFirst.label']]], $this->categoryMappingMerger->getConfigurationField(), $this->attributeMappingMerger->getConfigurationField());
 }
 /**
  * Set mapper parameters.
  *
  * @param PrestashopRestClientParameters $clientParameters
  * @param string                      $defaultStoreView
  */
 public function setParameters(PrestashopRestClientParameters $clientParameters, $defaultStoreView)
 {
     $this->clientParameters = $clientParameters;
     $this->defaultStoreView = $defaultStoreView;
     $this->attributeCodeMappingMerger->setParameters($clientParameters, $defaultStoreView);
 }
 /**
  * Called after the configuration is set.
  */
 protected function afterConfigurationSet()
 {
     $this->attributeCodeMappingMerger->setParameters($this->getClientParameters(), $this->getDefaultStoreView());
 }
 /**
  * {@inheritdoc}
  */
 public function getConfigurationFields()
 {
     return array_merge(parent::getConfigurationFields(), ['isAnchor' => ['type' => 'checkbox', 'options' => ['help' => 'pim_prestashop_connector.export.isAnchor.help', 'label' => 'pim_prestashop_connector.export.isAnchor.label']], 'urlKey' => ['type' => 'checkbox', 'options' => ['help' => 'pim_prestashop_connector.export.urlKey.help', 'label' => 'pim_prestashop_connector.export.urlKey.label']]], $this->categoryMappingMerger->getConfigurationField());
 }