Skip to content

Commit

Permalink
UHF-9080: check the view id, added docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
rpnykanen committed Oct 18, 2023
1 parent 4bb7443 commit c563c18
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,14 @@ function helfi_rekry_content_preprocess_block(&$variables) {
}
}

/**
* Implements hook_views_query_alter().
*/
function helfi_rekry_content_views_query_alter(ViewExecutable $view, QueryPluginBase $query) {
if ($view->id() !== 'job_listing_search') {
return;
}

$task_area_external_id = $query
->where[0]["conditions"][0]["value"][":node__field_task_area_field_task_area_target_id"];

Expand Down

0 comments on commit c563c18

Please sign in to comment.