Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / hook / user_format_name_alter.twig
index fa39e0ffb95835ada4c47ae8f40288300134d106..d1d13f6f71a372fde91dd76c57cff21574abc783 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * Implements hook_user_format_name_alter().
  */
-function {{ machine_name }}_user_format_name_alter(&$name, $account) {
+function {{ machine_name }}_user_format_name_alter(&$name, AccountInterface $account) {
   // Display the user's uid instead of name.
   if ($account->id()) {
     $name = t('User @uid', ['@uid' => $account->id()]);