public function WebformRequest::isAjax in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformRequest.php \Drupal\webform\WebformRequest::isAjax()
Determine if the current request is an Ajax request.
Return value
bool TRUE if the current request is an Ajax request.
Overrides WebformRequestInterface::isAjax
File
- src/
WebformRequest.php, line 226
Class
- WebformRequest
- Handles webform requests.
Namespace
Drupal\webformCode
public function isAjax() {
return $this->request
->get(AjaxResponseSubscriber::AJAX_REQUEST_PARAMETER) ? TRUE : FALSE;
}