function UnprocessableHttpEntityException::getViolations
Same name in other branches
- 9 core/modules/jsonapi/src/Exception/UnprocessableHttpEntityException.php \Drupal\jsonapi\Exception\UnprocessableHttpEntityException::getViolations()
- 8.9.x core/modules/jsonapi/src/Exception/UnprocessableHttpEntityException.php \Drupal\jsonapi\Exception\UnprocessableHttpEntityException::getViolations()
- 11.x core/modules/jsonapi/src/Exception/UnprocessableHttpEntityException.php \Drupal\jsonapi\Exception\UnprocessableHttpEntityException::getViolations()
Gets the constraint violations associated with this exception.
Return value
\Drupal\Core\Entity\EntityConstraintViolationListInterface The constraint violations.
File
-
core/
modules/ jsonapi/ src/ Exception/ UnprocessableHttpEntityException.php, line 55
Class
- UnprocessableHttpEntityException
- A class to represent a 422 - Unprocessable Entity Exception.
Namespace
Drupal\jsonapi\ExceptionCode
public function getViolations() {
return $this->violations;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.