function PreprocessHooks::lazyToolbarUserPicture

Same name and namespace in other branches
  1. main core/themes/admin/src/Hook/PreprocessHooks.php \Drupal\admin\Hook\PreprocessHooks::lazyToolbarUserPicture()

Static lazy loader for the user picture.

Return value

array The user picture as a render array.

File

core/themes/admin/src/Hook/PreprocessHooks.php, line 86

Class

PreprocessHooks
Provides preprocess implementations.

Namespace

Drupal\admin\Hook

Code

public static function lazyToolbarUserPicture() : array {
  return \Drupal::classResolver(PreprocessHooks::class)->toolbarUserPicture();
}

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