Same name in other branches
- 5.0.x src/Form/AdvaggFormBase.php \Drupal\advagg\Form\AdvaggFormBase::isAjax()
- 6.0.x src/Form/AdvaggFormBase.php \Drupal\advagg\Form\AdvaggFormBase::isAjax()
- 8.x-2.x src/Form/AdvaggFormBase.php \Drupal\advagg\Form\AdvaggFormBase::isAjax()
- 8.x-4.x src/Form/AdvaggFormBase.php \Drupal\advagg\Form\AdvaggFormBase::isAjax()
Checks if the form was submitted by AJAX.
Return value
bool TRUE if the form was submitted via AJAX, otherwise FALSE.
Fichier
-
src/
Form/ AdvaggFormBase.php, line 52
Classe
- AdvaggFormBase
- View AdvAgg information for this site.
Namespace
Drupal\advagg\FormCode
protected function isAjax() {
$request = $this->requestStack
->getCurrentRequest();
if ($request->query
->has(FormBuilderInterface::AJAX_FORM_REQUEST)) {
return TRUE;
}
return FALSE;
}