Checks if the form was submitted by AJAX.
Return value
bool TRUE if the form was submitted via AJAX, otherwise FALSE.
1 call to InfoForm::isAjax()
- InfoForm::getFileInfoSubmit dans src/
Form/ InfoForm.php - Display file info in a drupal message.
Fichier
-
src/
Form/ InfoForm.php, line 381
Classe
- InfoForm
- View AdvAgg information for this site.
Namespace
Drupal\advagg\FormCode
private function isAjax() {
$request = $this->requestStack
->getCurrentRequest();
if ($request->query
->has(FormBuilderInterface::AJAX_FORM_REQUEST)) {
return TRUE;
}
return FALSE;
}