You are here

public function PayloadInterface::addViolations in Open Social 10.0.x

Same name and namespace in other branches
  1. 10.3.x modules/custom/social_graphql/src/GraphQL/Payload/PayloadInterface.php \Drupal\social_graphql\GraphQL\Payload\PayloadInterface::addViolations()
  2. 10.1.x modules/custom/social_graphql/src/GraphQL/Payload/PayloadInterface.php \Drupal\social_graphql\GraphQL\Payload\PayloadInterface::addViolations()
  3. 10.2.x modules/custom/social_graphql/src/GraphQL/Payload/PayloadInterface.php \Drupal\social_graphql\GraphQL\Payload\PayloadInterface::addViolations()

Adds multiple violations.

Parameters

array $violations: An array of violations.

Return value

\Drupal\social_graphql\GraphQL\Payload\PayloadInterface This response.

File

modules/custom/social_graphql/src/GraphQL/Payload/PayloadInterface.php, line 34

Class

PayloadInterface
Response interface used for GraphQL responses.

Namespace

Drupal\social_graphql\GraphQL\Payload

Code

public function addViolations(array $violations) : self;