You are here

function views_views_query_substitutions in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/views.views_execution.inc \views_views_query_substitutions()
  2. 9 core/modules/views/views.views_execution.inc \views_views_query_substitutions()

Implements hook_views_query_substitutions().

Makes the following substitutions:

File

core/modules/views/views.views_execution.inc, line 20
Provides views runtime hooks for views.module.

Code

function views_views_query_substitutions(ViewExecutable $view) {
  $substitutions = [
    '***CURRENT_VERSION***' => \Drupal::VERSION,
    '***CURRENT_TIME***' => \Drupal::time()
      ->getRequestTime(),
  ] + PluginBase::queryLanguageSubstitutions();
  return $substitutions;
}