You are here

public function Response::getViolations in GraphQL 8.4

Gets the violations.

Return value

array Violations.

Overrides ResponseInterface::getViolations

File

src/GraphQL/Response/Response.php, line 39

Class

Response
Base class for responses containing the violations.

Namespace

Drupal\graphql\GraphQL\Response

Code

public function getViolations() : array {
  return $this->violations;
}