protected function FileUpload::getInputValue in Lightning Media 8.2
Same name and namespace in other branches
- 8 src/Plugin/EntityBrowser/Widget/FileUpload.php \Drupal\lightning_media\Plugin\EntityBrowser\Widget\FileUpload::getInputValue()
Returns the current input value, if any.
Parameters
\Drupal\Core\Form\FormStateInterface $form_state: The current form state.
Return value
mixed The input value, ready for further processing. Nothing will be done with the value if it's empty.
Overrides EntityFormProxy::getInputValue
1 call to FileUpload::getInputValue()
- FileUpload::validate in src/
Plugin/ EntityBrowser/ Widget/ FileUpload.php
File
- src/
Plugin/ EntityBrowser/ Widget/ FileUpload.php, line 26
Class
- FileUpload
- An Entity Browser widget for creating media entities from uploaded files.
Namespace
Drupal\lightning_media\Plugin\EntityBrowser\WidgetCode
protected function getInputValue(FormStateInterface $form_state) {
return $form_state
->getValue([
'input',
'fid',
]);
}