protected function TestAddForm::buildInputElement in Drupal 10
Same name and namespace in other branches
- 8 core/modules/media_library/tests/modules/media_library_form_overwrite_test/src/Form/TestAddForm.php \Drupal\media_library_form_overwrite_test\Form\TestAddForm::buildInputElement()
- 9 core/modules/media_library/tests/modules/media_library_form_overwrite_test/src/Form/TestAddForm.php \Drupal\media_library_form_overwrite_test\Form\TestAddForm::buildInputElement()
Builds the element for submitting source field value(s).
The input element needs to have a submit handler to create media items from the user input and store them in the form state using ::processInputValues().
Parameters
array $form: The complete form.
\Drupal\Core\Form\FormStateInterface $form_state: The current form state.
Return value
array The complete form, with the element added.
Overrides AddFormBase::buildInputElement
See also
::processInputValues()
File
- core/
modules/ media_library/ tests/ modules/ media_library_form_overwrite_test/ src/ Form/ TestAddForm.php, line 16
Class
- TestAddForm
- Test add form.
Namespace
Drupal\media_library_form_overwrite_test\FormCode
protected function buildInputElement(array $form, FormStateInterface $form_state) {
return [];
}