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

Breadcrumb

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

function ConstraintViolationList::createFromMessage

File

vendor/symfony/validator/ConstraintViolationList.php, line 42

Class

ConstraintViolationList
Default implementation of {@ConstraintViolationListInterface}.

Namespace

Symfony\Component\Validator

Code

public static function createFromMessage(string $message) : self {
    $self = new self();
    $self->add(new ConstraintViolation($message, '', [], null, '', null));
    return $self;
}
RSS feed
Powered by Drupal