function SystemThemeHooks::themeSuggestionsRegion
Implements hook_theme_suggestions_HOOK().
Attributes
#[Hook('theme_suggestions_region')]
File
-
core/
modules/ system/ src/ Hook/ SystemThemeHooks.php, line 67
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.