protected function BynderUpload::prepareEntities in Bynder 4.0.x
Same name and namespace in other branches
- 8.3 src/Plugin/EntityBrowser/Widget/BynderUpload.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderUpload::prepareEntities()
- 8 src/Plugin/EntityBrowser/Widget/BynderUpload.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderUpload::prepareEntities()
- 8.2 src/Plugin/EntityBrowser/Widget/BynderUpload.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderUpload::prepareEntities()
1 call to BynderUpload::prepareEntities()
- BynderUpload::submit in src/
Plugin/ EntityBrowser/ Widget/ BynderUpload.php
File
- src/
Plugin/ EntityBrowser/ Widget/ BynderUpload.php, line 210
Class
- BynderUpload
- Uses upload to create media entities.
Namespace
Drupal\bynder\Plugin\EntityBrowser\WidgetCode
protected function prepareEntities(array $form, FormStateInterface $form_state) {
if ($entities = $form_state
->get('uploaded_entities')) {
return $entities;
}
return [];
}