W3cubDocs

/Drupal 8

public static function Html::setIsAjax

public static Html::setIsAjax($is_ajax)

Sets if this request is an Ajax request.

Parameters

bool $is_ajax: TRUE if this request is an Ajax request, FALSE otherwise.

File

core/lib/Drupal/Component/Utility/Html.php, line 117

Class

Html
Provides DOMDocument helpers for parsing and serializing HTML strings.

Namespace

Drupal\Component\Utility

Code

public static function setIsAjax($is_ajax) {
  static::$isAjax = $is_ajax;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Utility!Html.php/function/Html::setIsAjax/8.1.x