2 * Implements hook_views_query_substitutions().
4 function {{ machine_name }}_views_query_substitutions(ViewExecutable $view) {
5 // Example from views_views_query_substitutions().
7 '***CURRENT_VERSION***' => \Drupal::VERSION,
8 '***CURRENT_TIME***' => REQUEST_TIME,
9 '***LANGUAGE_language_content***' => \Drupal::languageManager()->getCurrentLanguage(LanguageInterface::TYPE_CONTENT)->getId(),
10 PluginBase::VIEWS_QUERY_LANGUAGE_SITE_DEFAULT => \Drupal::languageManager()->getDefaultLanguage()->getId(),