Skip to content
Snippets Groups Projects
Commit 17c06e0c authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2002482 by chrisjlee, brennanmh, shixish: Rename Views method ensure_path() to ensurePath().

parent c4e15352
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -86,7 +86,7 @@ public function addTable($join = NULL, $alias = NULL) {
}
// Cycle through the joins. This isn't as error-safe as the normal
// ensure_path logic. Perhaps it should be.
// ensurePath logic. Perhaps it should be.
$r_join = clone $join;
while ($r_join->leftTable != $base_table) {
$r_join = HandlerBase::getTableJoin($r_join->leftTable, $base_table);
......
......@@ -365,7 +365,7 @@ function add_relationship($alias, JoinPluginBase $join, $base, $link_point = NUL
* added.
*/
public function addTable($table, $relationship = NULL, JoinPluginBase $join = NULL, $alias = NULL) {
if (!$this->ensure_path($table, $relationship, $join)) {
if (!$this->ensurePath($table, $relationship, $join)) {
return FALSE;
}
......@@ -545,7 +545,7 @@ function ensure_table($table, $relationship = NULL, JoinPluginBase $join = NULL)
// join to a link point, not the base table.
$join = $this->adjust_join($join, $relationship);
if ($this->ensure_path($table, $relationship, $join)) {
if ($this->ensurePath($table, $relationship, $join)) {
// Attempt to eliminate redundant joins. If this table's
// relationship and join exactly matches an existing table's
// relationship and join, we do not have to join to it again;
......@@ -587,7 +587,7 @@ function ensure_table($table, $relationship = NULL, JoinPluginBase $join = NULL)
* query they will be added, but additional copies will NOT be added
* if the table is already there.
*/
function ensure_path($table, $relationship = NULL, $join = NULL, $traced = array(), $add = array()) {
protected function ensurePath($table, $relationship = NULL, $join = NULL, $traced = array(), $add = array()) {
if (!isset($relationship)) {
$relationship = $this->view->storage->get('base_table');
}
......@@ -632,7 +632,7 @@ function ensure_path($table, $relationship = NULL, $join = NULL, $traced = array
// Keep looking.
$traced[$join->leftTable] = TRUE;
return $this->ensure_path($join->leftTable, $relationship, $left_join, $traced, $add);
return $this->ensurePath($join->leftTable, $relationship, $left_join, $traced, $add);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment