protected function JuiceboxDisplayStyle::argsToQuery in Juicebox HTML5 Responsive Image Galleries 8.3
Same name and namespace in other branches
- 8.2 src/Plugin/views/style/JuiceboxDisplayStyle.php \Drupal\juicebox\Plugin\views\style\JuiceboxDisplayStyle::argsToQuery()
Utility to extract current set of view args into list of query params.
Return value
array An array of items that can be used directly as part of the 'query' array in core URL-building methods. The keys will be numbered numerically as arg_0, arg_1,... arg_N with the same indexed order of the view args.
1 call to JuiceboxDisplayStyle::argsToQuery()
- JuiceboxDisplayStyle::render in src/
Plugin/ views/ style/ JuiceboxDisplayStyle.php - Render the display in this style.
File
- src/
Plugin/ views/ style/ JuiceboxDisplayStyle.php, line 513
Class
- JuiceboxDisplayStyle
- Plugin implementation of the 'juicebox' display style.
Namespace
Drupal\juicebox\Plugin\views\styleCode
protected function argsToQuery() {
$query = [];
foreach ($this->view->args as $key => $arg) {
$query['arg_' . $key] = $arg;
}
return $query;
}