/** * Alters the query with the 'vid' filter. */ public function alter_query_with_filter(Query $query, $filter_value) { if ($filter_value) { $query->filter_by_vid($filter_value); } return $query; }