. */ declare(strict_types=1); namespace Fisharebest\Webtrees\Elements; use Fisharebest\Webtrees\Auth; use Fisharebest\Webtrees\Tree; /** * The webtrees user for a CHAN or _TODO element */ class WebtreesUser extends AbstractElement { /** * Create a default value for this element. * * @param Tree $tree * * @return string */ public function default(Tree $tree): string { return Auth::user()->userName(); } }