You are here

function template_preprocess_viewsreference__view_title in Views Reference Field 8

Implements hook_preprocess_viewsreference__view_title().

File

./viewsreference.module, line 53
Module functions for viewsreference.

Code

function template_preprocess_viewsreference__view_title(&$variables) {
  $variables['title'] = [
    '#markup' => $variables['variables']['#title'],
  ];
  if (!empty($variables['variables']['#view'])) {
    \Drupal::service('renderer')
      ->addCacheableDependency($variables, $variables['variables']['#view']->storage);
  }
}