5 * Provides views runtime hooks for views.module.
8 use Drupal\views\ViewExecutable;
9 use Drupal\views\Plugin\views\PluginBase;
12 * Implements hook_views_query_substitutions().
14 * Makes the following substitutions:
17 * - Special language codes; see
18 * \Drupal\views\Plugin\views\PluginBase::listLanguages().
20 function views_views_query_substitutions(ViewExecutable $view) {
22 '***CURRENT_VERSION***' => \Drupal::VERSION,
23 '***CURRENT_TIME***' => REQUEST_TIME,
24 ] + PluginBase::queryLanguageSubstitutions();
26 return $substitutions;