Depending on the situation, the data should be in
$page_data = page_manager_get_current_page();
when calling from MYTHEME_preprocess_page().
You may need print_rdata, but I think the view name will be set to $page_data['handler']->subtask. I used to use this in themes, but depending on how your site integrates, this may not always work.
source
share