Move into nested docroot

This commit is contained in:
Rob Davies 2017-02-13 15:31:17 +00:00
parent 83a0d3a149
commit c8b70abde9
13405 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,27 @@
<?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 = array(
'***CURRENT_VERSION***' => \Drupal::VERSION,
'***CURRENT_TIME***' => REQUEST_TIME,
) + PluginBase::queryLanguageSubstitutions();
return $substitutions;
}