Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EmailLexer.php

function EmailLexer::find

@psalm-suppress InvalidScalarArgument

Parameters

int $type:

Return value

boolean

Throws

\UnexpectedValueException

File

vendor/egulias/email-validator/src/EmailLexer.php, line 182

Class

EmailLexer
@extends AbstractLexer<int, string>

Namespace

Egulias\EmailValidator

Code

public function find($type) : bool {
    $search = clone $this;
    $search->skipUntil($type);
    if (!$search->lookahead) {
        throw new \UnexpectedValueException($type . ' not found');
    }
    return true;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal