protected function BynderUpload::prepareEntities in Bynder 8
Same name and namespace in other branches
- 8.3 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()
- 4.0.x 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 179
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 [];
}