protected function VideoEmbedDialog::getUserInput in Video Embed Field 8
Same name and namespace in other branches
- 8.2 modules/video_embed_wysiwyg/src/Form/VideoEmbedDialog.php \Drupal\video_embed_wysiwyg\Form\VideoEmbedDialog::getUserInput()
Get a value from the widget in the WYSIWYG.
Parameters
\Drupal\Core\Form\FormStateInterface $form_state: The form state to extract values from.
string $key: The key to get from the selected WYSIWYG element.
Return value
string The default value.
1 call to VideoEmbedDialog::getUserInput()
- VideoEmbedDialog::buildForm in modules/
video_embed_wysiwyg/ src/ Form/ VideoEmbedDialog.php - Form constructor.
File
- modules/
video_embed_wysiwyg/ src/ Form/ VideoEmbedDialog.php, line 124
Class
- VideoEmbedDialog
- A class for a video embed dialog.
Namespace
Drupal\video_embed_wysiwyg\FormCode
protected function getUserInput(FormStateInterface $form_state, $key) {
return isset($form_state
->getUserInput()['editor_object'][$key]) ? $form_state
->getUserInput()['editor_object'][$key] : '';
}