You are here

protected function BynderUpload::prepareEntities 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::prepareEntities()
  2. 8 src/Plugin/EntityBrowser/Widget/BynderUpload.php \Drupal\bynder\Plugin\EntityBrowser\Widget\BynderUpload::prepareEntities()
  3. 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 182

Class

BynderUpload
Uses upload to create media entities.

Namespace

Drupal\bynder\Plugin\EntityBrowser\Widget

Code

protected function prepareEntities(array $form, FormStateInterface $form_state) {
  if ($entities = $form_state
    ->get('uploaded_entities')) {
    return $entities;
  }
  return [];
}