function Sql::add_signature in Views (for Drupal 7) 8.3
Add a signature to the query, if such a thing is feasible.
This signature is something that can be used when perusing query logs to discern where particular queries might be coming from.
Parameters
view $view: The view which is executed.
Overrides QueryPluginBase::add_signature
File
- lib/
Drupal/ views/ Plugin/ views/ query/ Sql.php, line 1645 - Definition of Drupal\views\Plugin\views\query\Sql.
Class
- Sql
- @todo.
Namespace
Drupal\views\Plugin\views\queryCode
function add_signature(ViewExecutable $view) {
$view->query
->add_field(NULL, "'" . $view->storage->name . ':' . $view->current_display . "'", 'view_name');
}