You are here

public function ResponseInterface::addViolations in GraphQL 8.4

Adds multiple violations.

Parameters

string[]|\Drupal\Core\StringTranslation\TranslatableMarkup[] $messages: Violation messages.

array $properties: Other properties related to the violation.

1 method overrides ResponseInterface::addViolations()
Response::addViolations in src/GraphQL/Response/Response.php
Adds multiple violations.

File

src/GraphQL/Response/ResponseInterface.php, line 30

Class

ResponseInterface
Response interface used for GraphQL responses.

Namespace

Drupal\graphql\GraphQL\Response

Code

public function addViolations(array $messages, array $properties = []) : void;