public function ElasticsearchViewsQuery::ensureTable in Elasticsearch Connector 8.5
Same name and namespace in other branches
- 8.7 modules/elasticsearch_connector_views/src/Plugin/views/query/ElasticsearchViewsQuery.php \Drupal\elasticsearch_connector_views\Plugin\views\query\ElasticsearchViewsQuery::ensureTable()
- 8.2 modules/elasticsearch_connector_views/src/Plugin/views/query/ElasticsearchViewsQuery.php \Drupal\elasticsearch_connector_views\Plugin\views\query\ElasticsearchViewsQuery::ensureTable()
- 8.6 modules/elasticsearch_connector_views/src/Plugin/views/query/ElasticsearchViewsQuery.php \Drupal\elasticsearch_connector_views\Plugin\views\query\ElasticsearchViewsQuery::ensureTable()
Ensure a table exists in the queue; if it already exists it won't do anything, but if it does not it will add the table queue. It will ensure a path leads back to the relationship table.
Parameters
$table: The not aliased name of the table to ensure.
$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
The alias used to refer to this specific table, or NULL if the table cannot be ensured.
File
- modules/
elasticsearch_connector_views/ src/ Plugin/ views/ query/ ElasticsearchViewsQuery.php, line 228
Class
- ElasticsearchViewsQuery
- Defines a Views query class for searching on Search API indexes.
Namespace
Drupal\elasticsearch_connector_views\Plugin\views\queryCode
public function ensureTable($table, $relationship = NULL, JoinPluginBase $join = NULL) {
// TODO: Read the documentation about this.
return NULL;
}