Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5namespace Drupal\name\Service;
6
7use Drupal\Core\Session\AccountInterface;
8
9/**
10 * Loads full user when user_format_name_alter needs preferred name field data.
11 *
12 * @internal
13 */
14interface UserRealnamePreloadInterface {
15
16  /**
17   * Preloads user entity where configured; mirrors legacy global behavior.
18   *
19   * Recursion check in place after RealName module issue queue suggested that
20   * there were issues with token based recursion on load.
21   */
22  public function preload(AccountInterface $account): void;
23
24}