function photos_theme_suggestions_photos_image in Album Photos 8.5
Same name and namespace in other branches
- 6.0.x photos.module \photos_theme_suggestions_photos_image()
Implements hook_theme_suggestions_HOOK().
File
- ./
photos.module, line 1342 - Implementation of photos.module.
Code
function photos_theme_suggestions_photos_image(array $variables) {
$suggestions = [];
$sanitized_view_mode = strtr($variables['elements']['#view_mode'], '.', '_');
$suggestions[] = 'photos_image__' . $sanitized_view_mode;
return $suggestions;
}