public function Xml::ensureTable in Views XML Backend 8
Ensures a table exists in the queue.
If it already exists it won't do anything, but if it doesn't it will add the table queue. It will ensure a path leads back to the relationship table.
Parameters
string $table: The unaliased name of the table to ensure.
string $relationship: The relationship to ensure the table links to. Each relationship will get a unique instance of the table being added. If not specified, will be the primary table.
\Drupal\views\Plugin\views\join\JoinPluginBase $join: A Join object (or derived object) to join the alias in.
Return value
string The alias used to refer to this specific table, or NULL if the table cannot be ensured.
File
- src/
Plugin/ views/ query/ Xml.php, line 226 - Contains \Drupal\views_xml_backend\Plugin\views\query\Xml.
Class
- Xml
- Views query plugin for an XML query.
Namespace
Drupal\views_xml_backend\Plugin\views\queryCode
public function ensureTable($table, $relationship = NULL, JoinPluginBase $join = NULL) {
return $table;
}