function views_views_query_substitutions

views_views_query_substitutions(ViewExecutable $view)

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 = array(
    '***CURRENT_VERSION***' => \Drupal::VERSION,
    '***CURRENT_TIME***' => REQUEST_TIME,
  ) + PluginBase::queryLanguageSubstitutions();

  return $substitutions;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!views!views.views_execution.inc/function/views_views_query_substitutions/8.1.x