function OliveroHooks::themeSuggestionsUserAlter

Implements hook_theme_suggestions_HOOK_alter().

Attributes

#[Hook('theme_suggestions_user_alter')]

File

core/themes/olivero/src/Hook/OliveroHooks.php, line 460

Class

OliveroHooks
Hook implementations for olivero.

Namespace

Drupal\olivero\Hook

Code

public function themeSuggestionsUserAlter(&$suggestions, $variables) : void {
  $suggestions[] = 'user__' . $variables['elements']['#view_mode'];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.