/** * {@inheritdoc} */ public function getAllSources() { $sources = []; if ($this->isValid()) { $codes = $this->localeManager->getActiveCodes(); foreach ($codes as $code) { $sources[] = ['id' => $code, 'text' => $code]; } } return $sources; }
/** * {@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()); }