You are here

function vff_theme_suggestions_alter in Field Formatter Template 8

Same name and namespace in other branches
  1. 8.2 modules/vff/vff.module \vff_theme_suggestions_alter()

Implements hook_theme_suggestions_alter().

File

modules/vff/vff.module, line 30
Contains vff.module.

Code

function vff_theme_suggestions_alter(array &$suggestions, array $variables, $hook) {
  if ($hook === 'views_view' && isset($variables['view'])) {
    $options = $variables['view']->style_plugin->options;
    if (!empty($options['vff_clean_template'])) {
      $suggestions[] = 'views_view__vff';
    }
  }
}