|
@@ 72-79 (lines=8) @@
|
| 69 |
|
/** |
| 70 |
|
* @inheritdoc |
| 71 |
|
*/ |
| 72 |
|
public function addValidationAttributeError( |
| 73 |
|
ErrorInterface $error, |
| 74 |
|
int $errorStatus = JsonApiResponse::HTTP_UNPROCESSABLE_ENTITY |
| 75 |
|
): void { |
| 76 |
|
$title = $this->getInvalidValueMessage(); |
| 77 |
|
$detail = $this->getValidationMessage($error); |
| 78 |
|
$this->addDataAttributeError($error->getParameterName(), $title, $detail, (string)$errorStatus); |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
/** |
| 82 |
|
* @inheritdoc |
|
@@ 84-91 (lines=8) @@
|
| 81 |
|
/** |
| 82 |
|
* @inheritdoc |
| 83 |
|
*/ |
| 84 |
|
public function addValidationRelationshipError( |
| 85 |
|
ErrorInterface $error, |
| 86 |
|
int $errorStatus = JsonApiResponse::HTTP_UNPROCESSABLE_ENTITY |
| 87 |
|
): void { |
| 88 |
|
$title = $this->getInvalidValueMessage(); |
| 89 |
|
$detail = $this->getValidationMessage($error); |
| 90 |
|
$this->addRelationshipError($error->getParameterName(), $title, $detail, (string)$errorStatus); |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
/** |
| 94 |
|
* @inheritdoc |