Contao\User::__toString PHP Méthode

__toString() public méthode

Get a string representation of the user
public __toString ( ) : string
Résultat string The string representation
    public function __toString()
    {
        if (!$this->intId) {
            return 'anon.';
        }
        return $this->username ?: $this->getTable() . '.' . $this->intId;
    }