Add Html::isAjax()

Created on 1 February 2016, almost 9 years ago
Updated 3 March 2023, almost 2 years ago

Right now Html.php has a function which sets static::$isAjax, which used only in the getUniqueId() function.

Exposing this through a isAjax() function will allow modules to easily identify if they need to return a render array or an AjaxResponse.

I know that Drupal will send the rendered array through AJAX commands, but the commands have no selector provided and the alter hook for them provides no context either.

Feature request
Status

Needs work

Version

10.1

Component
Ajax 

Last updated 1 day ago

Created by

🇷🇴Romania tic2000

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024