function statusmessage_theme_suggestions_status in Heartbeat 8
Implements hook_theme_suggestions_HOOK().
File
- modules/
statusmessage/ statusmessage.module, line 69 - Contains statusmessage.module..
Code
function statusmessage_theme_suggestions_status(array $variables) {
$suggestions = array();
$entity = $variables['elements']['#status'];
$sanitized_view_mode = strtr($variables['elements']['#view_mode'], '.', '_');
$suggestions[] = 'status__' . $sanitized_view_mode;
$suggestions[] = 'status__' . $entity
->bundle();
$suggestions[] = 'status__' . $entity
->bundle() . '__' . $sanitized_view_mode;
$suggestions[] = 'status__' . $entity
->id();
$suggestions[] = 'status__' . $entity
->id() . '__' . $sanitized_view_mode;
return $suggestions;
}