You are here

public function PayloadInterface::addViolation in Open Social 10.1.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::addViolation()
  2. 10.0.x modules/custom/social_graphql/src/GraphQL/Payload/PayloadInterface.php \Drupal\social_graphql\GraphQL\Payload\PayloadInterface::addViolation()
  3. 10.2.x modules/custom/social_graphql/src/GraphQL/Payload/PayloadInterface.php \Drupal\social_graphql\GraphQL\Payload\PayloadInterface::addViolation()

Adds the violation.

Parameters

\Drupal\social_graphql\GraphQL\ViolationInterface $violation: A violation.

Return value

$this This payload.

File

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

Class

PayloadInterface
Response interface used for GraphQL responses.

Namespace

Drupal\social_graphql\GraphQL\Payload

Code

public function addViolation(ViolationInterface $violation) : self;