app\models\Event::arrayUser PHP Method

arrayUser() public method

public arrayUser ( $matches )
    public function arrayUser($matches)
    {
        if (isset($matches['userName'])) {
            $username = html_entity_decode($matches['userName']);
            $userUrl = html_entity_decode($matches['userUrl']);
        } else {
            $user = $this->user;
            $username = $user->username;
            $userUrl = route('users.show', $user->user_id);
        }
        return ['username' => $username, 'url' => $userUrl];
    }