protected function EntityReferenceFilterViewResult::getViewContextArgs in Views Reference Filter 8
Get current view contextual arguments.
Return value
array View contextual arguments.
2 calls to EntityReferenceFilterViewResult::getViewContextArgs()
- EntityReferenceFilterViewResult::afterBuild in src/
Plugin/ views/ filter/ EntityReferenceFilterViewResult.php - After build form callback for exposed form with entity reference filters.
- EntityReferenceFilterViewResult::getFilterArgs in src/
Plugin/ views/ filter/ EntityReferenceFilterViewResult.php - Get the calculated filter arguments.
File
- src/
Plugin/ views/ filter/ EntityReferenceFilterViewResult.php, line 333
Class
- EntityReferenceFilterViewResult
- Filter by entity id using items got from the another view..
Namespace
Drupal\entityreference_filter\Plugin\views\filterCode
protected function getViewContextArgs() {
$args = [];
$arguments = $this->view->argument ?? [];
foreach ($arguments as $handler) {
$args[] = $handler
->getValue();
}
return $args;
}