Mercurial > hg > isophonics-drupal-site
view core/modules/views/views.views_execution.inc @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | af1871eacc83 |
line wrap: on
line source
<?php /** * @file * Provides views runtime hooks for views.module. */ use Drupal\views\ViewExecutable; use Drupal\views\Plugin\views\PluginBase; /** * Implements hook_views_query_substitutions(). * * 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) { $substitutions = [ '***CURRENT_VERSION***' => \Drupal::VERSION, '***CURRENT_TIME***' => REQUEST_TIME, ] + PluginBase::queryLanguageSubstitutions(); return $substitutions; }