mustache_templates-8.x-1.0-beta4/modules/mustache_views/mustache_views.module
modules/mustache_views/mustache_views.module
<?php
/**
* @file
* The mustache_views module file.
*/
use Drupal\Core\Database\Query\AlterableInterface;
/**
* Implements hook_query_TAG_alter().
*
* This is the hook_query_alter() for queries tagged by Views and is used to
* evaluate any input that contains Mustache template syntax.
*/
function mustache_views_query_views_alter(AlterableInterface $query) {
\Drupal::service('mustache.views')->alterQuery($query);
}
