You are here

public function WebformRequest::isAjax in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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 222

Class

WebformRequest
Handles webform requests.

Namespace

Drupal\webform

Code

public function isAjax() {
  return $this->request
    ->get(AjaxResponseSubscriber::AJAX_REQUEST_PARAMETER) ? TRUE : FALSE;
}