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

Breadcrumb

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

function EmailSubjectContains::matches

Overrides Constraint::matches

File

vendor/symfony/mime/Test/Constraint/EmailSubjectContains.php, line 29

Class

EmailSubjectContains

Namespace

Symfony\Component\Mime\Test\Constraint

Code

protected function matches($other) : bool {
    if (!$other instanceof Email) {
        throw new \LogicException('Can only test a message subject on an Email instance.');
    }
    return str_contains((string) $other->getSubject(), $this->expectedSubjectValue);
}

API Navigation

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