lib/models/User.php
public function getPhotoEmail()
    {
        if (!empty($this->email) && substr($this->email, -6) !== ".local") {
            return $this->email;
        }

        return false;
    }
public function getPhotoEmail()
    {
        if (!empty($this->email) && substr($this->email, -6) !== ".local") {
            return $this->email;
        }

        return false;
    }
Get photo email.

@return [[@doctodo return_type:getPhotoEmail]] [[@doctodo return_description:getPhotoEmail]]