/**
  * {@inheritdoc}
  */
 public function write(array $items)
 {
     parent::write(array_map(function ($item) {
         return $item['entry'];
     }, $items));
     $this->writtenFiles[$this->getPath()] = basename($this->getPath());
     foreach ($items as $data) {
         foreach ($data['media'] as $media) {
             if ($media) {
                 $this->copyMedia($media);
             }
         }
     }
 }
 /**
  * {@inheritdoc}
  */
 public function getConfigurationFields()
 {
     return array_merge(parent::getConfigurationFields(), ['delimiter' => ['options' => ['label' => 'pim_base_connector.export.delimiter.label', 'help' => 'pim_base_connector.export.delimiter.help']], 'enclosure' => ['options' => ['label' => 'pim_base_connector.export.enclosure.label', 'help' => 'pim_base_connector.export.enclosure.help']], 'withHeader' => ['type' => 'switch', 'options' => ['label' => 'pim_base_connector.export.withHeader.label', 'help' => 'pim_base_connector.export.withHeader.help']]]);
 }
 /**
  * {@inheritdoc}
  */
 public function getConfigurationFields()
 {
     $configuration = parent::getConfigurationFields();
     $configuration = $configuration + ['header' => ['header' => null]];
     return $configuration;
 }