function system_theme_suggestions_region in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/system.module \system_theme_suggestions_region()
Implements hook_theme_suggestions_HOOK().
File
- core/
modules/ system/ system.module, line 359 - Configuration system that lets administrators modify the workings of the site.
Code
function system_theme_suggestions_region(array $variables) {
$suggestions = [];
if (!empty($variables['elements']['#region'])) {
$suggestions[] = 'region__' . $variables['elements']['#region'];
}
return $suggestions;
}