public static function getContextFromRequest(array
$headers, Request
$request) { $context =
static::
getOrder($headers,
$request);
$context['sort'
] =
static::
getSort($headers,
$request);
$context['query'
] =
static::
getQueryParameters($request);
return $context;
} /**
* Formats a column header.
*
* If the cell in question is the column header for the current sort
* criterion, it gets special formatting. All possible sort criteria become
* links.
*
* @param string $cell_content
* The cell content to format. Passed by reference.
* @param array $cell_attributes
* The cell attributes. Passed by reference.
* @param array $header
* An array of column headers in the format described in '#type' => 'table'.
* @param array $context
* The current table sort context as returned from
* TableSort::getContextFromRequest() method.
*
* @throws \Exception
*
* @see getContextFromRequest()
*/