function ViewsViewsExecutionHooks::viewsQuerySubstitutions

Implements hook_views_query_substitutions().

Makes the following substitutions:

File

core/modules/views/src/Hook/ViewsViewsExecutionHooks.php, line 23

Class

ViewsViewsExecutionHooks
Hook implementations for views.

Namespace

Drupal\views\Hook

Code

public function viewsQuerySubstitutions(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.