1 views_handler_filter_many_to_one.inc | views_handler_filter_many_to_one::ensure_my_table() |
Override ensure_my_table so we can control how this joins in. The operator actually has influence over joining.
Overrides views_handler::ensure_my_table
File
- core/
modules/ views/ handlers/ views_handler_filter_many_to_one.inc, line 108 - Definition of views_handler_filter_many_to_one.
Class
- views_handler_filter_many_to_one
- Complex filter to handle filtering for many to one relationships, such as terms (many terms per node) or roles (many roles per user).
Code
function ensure_my_table() {
// Defer to helper if the operator specifies it.
$info = $this->operators();
if (isset($info[$this->operator]['ensure_my_table']) && $info[$this->operator]['ensure_my_table'] == 'helper') {
return $this->helper->ensure_my_table();
}
return parent::ensure_my_table();
}