function MediaTypeForm::validateForm
Same name in other branches
- 9 core/modules/media/src/MediaTypeForm.php \Drupal\media\MediaTypeForm::validateForm()
- 10 core/modules/media/src/MediaTypeForm.php \Drupal\media\MediaTypeForm::validateForm()
- 11.x core/modules/media/src/MediaTypeForm.php \Drupal\media\MediaTypeForm::validateForm()
Overrides FormBase::validateForm
File
-
core/
modules/ media/ src/ MediaTypeForm.php, line 282
Class
- MediaTypeForm
- Form controller for media type forms.
Namespace
Drupal\mediaCode
public function validateForm(array &$form, FormStateInterface $form_state) {
parent::validateForm($form, $form_state);
if (isset($form['source_dependent']['source_configuration'])) {
// Let the selected plugin validate its settings.
$this->entity
->getSource()
->validateConfigurationForm($form['source_dependent']['source_configuration'], $this->getSourceSubFormState($form, $form_state));
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.