Skip to content
views.views_execution.inc 640 B
Newer Older
<?php

/**
 * @file
 * Provides views runtime hooks for views.module.
 */

use Drupal\views\ViewExecutable;
use Drupal\views\Plugin\views\PluginBase;
 * Makes the following substitutions:
 * - Current time.
 * - Drupal version.
 * - Special language codes; see
 *   \Drupal\views\Plugin\views\PluginBase::listLanguages().
 */
function views_views_query_substitutions(ViewExecutable $view) {
    '***CURRENT_VERSION***' => \Drupal::VERSION,
  ) + PluginBase::queryLanguageSubstitutions();

  return $substitutions;