public function ViewsJsonQuery::getCurrentContextualFilter in Views Json Source 1.x
Same name and namespace in other branches
- 8 src/Plugin/views/query/ViewsJsonQuery.php \Drupal\views_json_source\Plugin\views\query\ViewsJsonQuery::getCurrentContextualFilter()
To get the next filter value to pick the node from the json.
1 call to ViewsJsonQuery::getCurrentContextualFilter()
- ViewsJsonQuery::apath in src/
Plugin/ views/ query/ ViewsJsonQuery.php - Fetch data in array according to apath.
File
- src/
Plugin/ views/ query/ ViewsJsonQuery.php, line 484
Class
- ViewsJsonQuery
- Base query handler for views_json_source.
Namespace
Drupal\views_json_source\Plugin\views\queryCode
public function getCurrentContextualFilter() {
$filter = current($this->contextualFilter);
next($this->contextualFilter);
return $filter;
}