protected function EntityFormProxy::prepareEntities in Lightning Media 8.3
Same name and namespace in other branches
- 8.4 src/Plugin/EntityBrowser/Widget/EntityFormProxy.php \Drupal\lightning_media\Plugin\EntityBrowser\Widget\EntityFormProxy::prepareEntities()
- 8 src/Plugin/EntityBrowser/Widget/EntityFormProxy.php \Drupal\lightning_media\Plugin\EntityBrowser\Widget\EntityFormProxy::prepareEntities()
- 8.2 src/Plugin/EntityBrowser/Widget/EntityFormProxy.php \Drupal\lightning_media\Plugin\EntityBrowser\Widget\EntityFormProxy::prepareEntities()
1 call to EntityFormProxy::prepareEntities()
- FileUpload::prepareEntities in src/
Plugin/ EntityBrowser/ Widget/ FileUpload.php
1 method overrides EntityFormProxy::prepareEntities()
- FileUpload::prepareEntities in src/
Plugin/ EntityBrowser/ Widget/ FileUpload.php
File
- src/
Plugin/ EntityBrowser/ Widget/ EntityFormProxy.php, line 128
Class
- EntityFormProxy
- Base class for EB widgets which wrap around an (inline) entity form.
Namespace
Drupal\lightning_media\Plugin\EntityBrowser\WidgetCode
protected function prepareEntities(array $form, FormStateInterface $form_state) {
$entity_form =& $form['widget']['entity_form']['entity'];
if (isset($entity_form['#entity'])) {
return [
$entity_form['#entity'],
];
}
return [];
}