function AjaxPageState::parseAjaxPageState
Parse the ajax_page_state variable in the request.
Decompresses the libraries array key.
Parameters
array $ajax_page_state: An array of query parameters, where the libraries parameter is compressed.
Return value
array
1 call to AjaxPageState::parseAjaxPageState()
- AjaxPageState::handle in core/
lib/ Drupal/ Core/ StackMiddleware/ AjaxPageState.php - Handles a Request to convert it to a Response.
File
-
core/
lib/ Drupal/ Core/ StackMiddleware/ AjaxPageState.php, line 49
Class
- AjaxPageState
- Expands the compressed ajax_page_state query parameter into an array.
Namespace
Drupal\Core\StackMiddlewareCode
private function parseAjaxPageState(array $ajax_page_state) : array {
$ajax_page_state['libraries'] = UrlHelper::uncompressQueryParameter($ajax_page_state['libraries']);
return $ajax_page_state;
}