public function ViewsJsonQuery::getCurrentContextualFilter in Views Json Source 8
Same name and namespace in other branches
- 1.x 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 591
Class
- ViewsJsonQuery
- Base query handler for views_json_source.
Namespace
Drupal\views_json_source\Plugin\views\queryCode
public function getCurrentContextualFilter() {
if (!isset($this->contextualFilter)) {
return [];
}
$filter = current($this->contextualFilter);
next($this->contextualFilter);
return $filter;
}