public function MenuChildrenNodeJoin::joinToNodeTable in Views Menu Node Children Filter 3.0.x
Same name and namespace in other branches
- 8.2 src/Plugin/views/join/MenuChildrenNodeJoin.php \Drupal\views_menu_children_filter\Plugin\views\join\MenuChildrenNodeJoin::joinToNodeTable()
- 8 src/Plugin/views/join/MenuChildrenNodeJoin.php \Drupal\views_menu_children_filter\Plugin\views\join\MenuChildrenNodeJoin::joinToNodeTable()
Parameters
Sql $query The query that the join will be added to.:
bool $allow_duplicate_join If "false", prevents this join from joining more than once if this function is called repeatedly.:
File
- src/
Plugin/ views/ join/ MenuChildrenNodeJoin.php, line 113
Class
- MenuChildrenNodeJoin
- Views Join plugin to join the Node table to the menu_tree table.
Namespace
Drupal\views_menu_children_filter\Plugin\views\joinCode
public function joinToNodeTable(Sql $query, $allow_duplicate_join = false) {
// Because this can be called from the argument and sort handlers,
// first check to see if the join as already been applied.
if (!$allow_duplicate_join && isset($query->tables['node_field_data']['menu_link_content_data'])) {
return;
}
$query
->queueTable("menu_link_content_data", "node_field_data", $this);
}