You are here

public function BynderUpload::submitConfigurationForm in Bynder 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/EntityBrowser/Widget/BynderUpload.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderUpload::submitConfigurationForm()
  2. 8 src/Plugin/EntityBrowser/Widget/BynderUpload.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderUpload::submitConfigurationForm()
  3. 4.0.x src/Plugin/EntityBrowser/Widget/BynderUpload.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderUpload::submitConfigurationForm()

File

src/Plugin/EntityBrowser/Widget/BynderUpload.php, line 535

Class

BynderUpload
Uses upload to create media entities.

Namespace

Drupal\bynder\Plugin\EntityBrowser\Widget

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  parent::submitConfigurationForm($form, $form_state);
  $this->configuration['tags'] = explode(',', $this->configuration['tags']);
  $this->configuration['tags'] = array_map('trim', $this->configuration['tags']);
  $this->configuration['metaproperty_options'] = array_filter($this->configuration['metaproperty_options']);
  unset($this->configuration['metaproperties']);
}