You are here

public function ResponseInterface::addViolation in GraphQL 8.4

Adds the violation.

Parameters

string|\Drupal\Core\StringTranslation\TranslatableMarkup $message: Violation message.

array $properties: Other properties related to the violation.

1 method overrides ResponseInterface::addViolation()
Response::addViolation in src/GraphQL/Response/Response.php
Adds the violation.

File

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

Class

ResponseInterface
Response interface used for GraphQL responses.

Namespace

Drupal\graphql\GraphQL\Response

Code

public function addViolation($message, array $properties = []) : void;