function SystemThemeHooks::themeSuggestionsRegion
Same name and namespace in other branches
- 11.x core/modules/system/src/Hook/SystemThemeHooks.php \Drupal\system\Hook\SystemThemeHooks::themeSuggestionsRegion()
Implements hook_theme_suggestions_HOOK().
Attributes
#[Hook('theme_suggestions_region')]
File
-
core/
modules/ system/ src/ Hook/ SystemThemeHooks.php, line 214
Class
- SystemThemeHooks
- Hook implementations for system.
Namespace
Drupal\system\HookCode
public function themeSuggestionsRegion(array $variables) : array {
$suggestions = [];
if (!empty($variables['elements']['#region'])) {
$suggestions[] = 'region__' . $variables['elements']['#region'];
}
return $suggestions;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.