abstract protected function AddFormBase::buildInputElement in Drupal 10
Same name and namespace in other branches
- 8 core/modules/media_library/src/Form/AddFormBase.php \Drupal\media_library\Form\AddFormBase::buildInputElement()
- 9 core/modules/media_library/src/Form/AddFormBase.php \Drupal\media_library\Form\AddFormBase::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.
See also
::processInputValues()
1 call to AddFormBase::buildInputElement()
- AddFormBase::buildForm in core/
modules/ media_library/ src/ Form/ AddFormBase.php - Form constructor.
1 method overrides AddFormBase::buildInputElement()
- TestAddForm::buildInputElement in core/
modules/ media_library/ tests/ modules/ media_library_form_overwrite_test/ src/ Form/ TestAddForm.php - Builds the element for submitting source field value(s).
File
- core/
modules/ media_library/ src/ Form/ AddFormBase.php, line 235
Class
- AddFormBase
- Provides a base class for creating media items from within the media library.
Namespace
Drupal\media_library\FormCode
protected abstract function buildInputElement(array $form, FormStateInterface $form_state);