public function PayloadInterface::addViolations in Open Social 10.3.x
Same name and namespace in other branches
- 10.0.x modules/custom/social_graphql/src/GraphQL/Payload/PayloadInterface.php \Drupal\social_graphql\GraphQL\Payload\PayloadInterface::addViolations()
- 10.1.x modules/custom/social_graphql/src/GraphQL/Payload/PayloadInterface.php \Drupal\social_graphql\GraphQL\Payload\PayloadInterface::addViolations()
- 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
$this This payload.
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\PayloadCode
public function addViolations(array $violations) : self;