You are here

function system_theme_suggestions_region in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/system.module \system_theme_suggestions_region()
  2. 9 core/modules/system/system.module \system_theme_suggestions_region()

Implements hook_theme_suggestions_HOOK().

File

core/modules/system/system.module, line 344
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;
}