Same name in other branches
- 8.x-1.x src/Controller/ExifSettingsForm.php \Drupal\exif\Controller\ExifSettingsForm::validateForm()
Fichier
-
src/
Form/ ExifSettingsForm.php, line 321
Classe
- ExifSettingsForm
- Manage Settings forms.
Namespace
Drupal\exif\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
if ($form_state->getValue('extraction_solution') == 'simple_exiftool' && !is_executable($form_state->getValue('exiftool_location'))) {
$form_state->setErrorByName('exiftool_location', $this->t('The location provided for exiftool is not correct. Please ensure the exiftool location exists and is executable.'));
}
parent::validateForm($form, $form_state);
}