protected function InsertViewDialog::getUserInput in Advanced Insert View 2.0.x
Same name and namespace in other branches
- 8 src/Form/InsertViewDialog.php \Drupal\insert_view_adv\Form\InsertViewDialog::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.
2 calls to InsertViewDialog::getUserInput()
- InsertViewDialog::buildForm in src/
Form/ InsertViewDialog.php - Form constructor.
- InsertViewDialog::renderArgument in src/
Form/ InsertViewDialog.php - Create the argument field.
File
- src/
Form/ InsertViewDialog.php, line 354
Class
- InsertViewDialog
- Class InsertViewDialog.
Namespace
Drupal\insert_view_adv\FormCode
protected function getUserInput(FormStateInterface $form_state, $key) {
return isset($form_state
->getUserInput()['editor_object'][$key]) ? $form_state
->getUserInput()['editor_object'][$key] : '';
}