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

Breadcrumb

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

function MessageIDParser::preLeftParsing

Overrides Parser::preLeftParsing

File

vendor/egulias/email-validator/src/MessageIDParser.php, line 37

Class

MessageIDParser

Namespace

Egulias\EmailValidator

Code

protected function preLeftParsing() : Result {
    if (!$this->hasAtToken()) {
        return new InvalidEmail(new NoLocalPart(), $this->lexer->current->value);
    }
    return new ValidEmail();
}

API Navigation

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