You are here

function fft_theme_extension in Field Formatter Template 8

Same name and namespace in other branches
  1. 8.2 fft.module \fft_theme_extension()

Theme template extension.

Return value

string Return theme extension format.

1 call to fft_theme_extension()
fft_get_templates in ./fft.module
Get available templates.

File

./fft.module, line 251
Field formatter template.

Code

function fft_theme_extension() {
  $extension = '.html.twig';
  global $theme_engine;
  if (isset($theme_engine)) {
    $extension_function = $theme_engine . '_extension';
    if (function_exists($extension_function)) {
      $extension = $extension_function();
    }
  }
  return $extension;
}