Need json pagers infos in views rest_export Drupal 8 .Can any one help this .
===================================================
I can get pagers info at Views Datasource Module in Drupal 7.
like this :
// check if user wants nested arrays
$vars["rows"] = strlen($root_object) != 0 ? array($root_object => $objects) : $objects;
//DIY ADD BEGIN
global $pager_total, $pager_page_array, $pager_total_items, $pager_limits;
$vars['rows']['pager'] = array(
'pages' => $pager_total[0],
'page' => $pager_page_array[0],
'count' => intval($pager_total_items[0]),
'limit' => intval($pager_limits[0])
);
$vars["rows"]["pager"]=$vars["rows"]["pager"];
//print_r($vars['rows']['pager']);
/**
Array(
[pages] => 9
[page] => 2
[count] => 101
[limit] => 12
)
*/
//DIY ADD END
Comments
Comment #2
hubobbb CreditAttribution: hubobbb commentedComment #7
cilefen CreditAttribution: cilefen commentedI am closing this support request because there have been no recent comments.
The Drupal Core issue queue is not the ideal place for support requests. Consider other sources of support.