public function loadUsersByEmail($email, array $prioritizedLanguages = [])
    {
        if (!is_string($email) || empty($email)) {
            throw new InvalidArgumentValue('email', $email);
        }

        $users = array();
        foreach ($this->userHandler->loadByEmail($email) as $spiUser) {
            $users[] = $this->buildDomainUserObject($spiUser, null, $prioritizedLanguages);
        }

        return $users;
    }
public function loadUsersByEmail($email, array $prioritizedLanguages = [])
    {
        if (!is_string($email) || empty($email)) {
            throw new InvalidArgumentValue('email', $email);
        }

        $users = array();
        foreach ($this->userHandler->loadByEmail($email) as $spiUser) {
            $users[] = $this->buildDomainUserObject($spiUser, null, $prioritizedLanguages);
        }

        return $users;
    }
public function loadUsersByEmail ( $ email , array $ prioritizedLanguages = [ ] ) { if ( ! is_string ( $ email ) || empty ( $ email ) ) { throw new InvalidArgumentValue ( 'email' , $ email ) ; } $ users = array ( ) ; foreach ( $ this -> userHandler -> loadByEmail ( $ email ) as $ spiUser ) { $ users [ ] = $ this -> buildDomainUserObject ( $ spiUser , null , $ prioritizedLanguages ) ; } return $ users ; }
Loads a user for the given email.

{@inheritdoc}

@param string $email
@param string[] $prioritizedLanguages Used as prioritized language code on translated properties of returned object.

@return \eZ\Publish\API\Repository\Values\User\User[]
Loads a user for the given email .