Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Html.php

function Html::setIsAjax

Sets if this request is an Ajax request.

Parameters

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

1 call to Html::setIsAjax()
AjaxResponseSubscriber::onRequest in core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php
Sets the AJAX parameter from the current request.

File

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

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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal