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

Breadcrumb

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

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\StackMiddleware

Code

private function parseAjaxPageState(array $ajax_page_state) : array {
    $ajax_page_state['libraries'] = UrlHelper::uncompressQueryParameter($ajax_page_state['libraries']);
    return $ajax_page_state;
}

API Navigation

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