function views_views_query_substitutions
Implements hook_views_query_substitutions().
Makes the following substitutions:
- Current time.
- Drupal version.
- Special language codes; see \Drupal\views\Plugin\views\PluginBase::listLanguages().
File
- 
              core/modules/ views/ views.views_execution.inc, line 20 
Code
function views_views_query_substitutions(ViewExecutable $view) {
  $substitutions = [
    '***CURRENT_VERSION***' => \Drupal::VERSION,
    '***CURRENT_TIME***' => \Drupal::time()->getRequestTime(),
  ] + PluginBase::queryLanguageSubstitutions();
  return $substitutions;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
