user_views_query_substitutions(ViewExecutable $view)
Implements hook_views_query_substitutions().
Allow replacement of current userid so we can cache these queries.
function user_views_query_substitutions(ViewExecutable $view) { return array('***CURRENT_USER***' => \Drupal::currentUser()->id()); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!user!user.views_execution.inc/function/user_views_query_substitutions/8.1.x