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

Breadcrumb

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

function LocalComment::endOfLoopValidations

Overrides CommentStrategy::endOfLoopValidations

File

vendor/egulias/email-validator/src/Parser/CommentStrategy/LocalComment.php, line 24

Class

LocalComment

Namespace

Egulias\EmailValidator\Parser\CommentStrategy

Code

public function endOfLoopValidations(EmailLexer $lexer) : Result {
    if (!$lexer->isNextToken(EmailLexer::S_AT)) {
        return new InvalidEmail(new ExpectingATEXT('ATEX is not expected after closing comments'), $lexer->current->value);
    }
    $this->warnings[CFWSNearAt::CODE] = new CFWSNearAt();
    return new ValidEmail();
}

API Navigation

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