Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294542

Add Html::isAjax()

$
0
0

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.


Viewing all articles
Browse latest Browse all 294542


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>