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

Breadcrumb

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

function EmailHeaderSame::matches

Parameters

RawMessage $message:

Overrides Constraint::matches

File

vendor/symfony/mime/Test/Constraint/EmailHeaderSame.php, line 34

Class

EmailHeaderSame

Namespace

Symfony\Component\Mime\Test\Constraint

Code

protected function matches($message) : bool {
    if (RawMessage::class === $message::class) {
        throw new \LogicException('Unable to test a message header on a RawMessage instance.');
    }
    return $this->expectedValue === $this->getHeaderValue($message);
}

API Navigation

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