You are here

public function WebformRevisionsRequest::isAjax in Config Entity Revisions 8

Same name and namespace in other branches
  1. 8.2 modules/webform_revisions/src/WebformRevisionsRequest.php \Drupal\webform_revisions\WebformRevisionsRequest::isAjax()
  2. 1.x modules/webform_revisions/src/WebformRevisionsRequest.php \Drupal\webform_revisions\WebformRevisionsRequest::isAjax()

Determine if the current request is an Ajax request.

Return value

bool TRUE if the current request is an Ajax request.

Overrides WebformRequest::isAjax

File

modules/webform_revisions/src/WebformRevisionsRequest.php, line 232

Class

WebformRevisionsRequest
Handles webform requests.

Namespace

Drupal\webform_revisions

Code

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