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

Breadcrumb

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

function EmailSubjectContains::failureDescription

Overrides Constraint::failureDescription

File

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

Class

EmailSubjectContains

Namespace

Symfony\Component\Mime\Test\Constraint

Code

protected function failureDescription($other) : string {
    $message = 'The email subject ' . $this->toString();
    if ($other instanceof Email) {
        $message .= \sprintf('. The subject was: "%s"', $other->getSubject() ?? '<empty>');
    }
    return $message;
}

API Navigation

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