ContentValidator
ContentValidator.php
:
13
Methods¶
supports() ¶
ContentValidator.php
:
15
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$object | ValueObject | - | - |
Return values
bool
validate() ¶
ContentValidator.php
:
37
Validates given content related ValueObject returning field errors structure as a result.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$object | ValueObject | - | - |
$context | array<string|int, mixed> | [] |
Additional context parameters to be used by validators. |
$fieldIdentifiers | array<string|int, string>|null | null |
List of field identifiers for partial validation or null for case of full validation. Empty identifiers array is equal to no validation. |
Return values
array<string|int, mixed>
Grouped validation errors by field definition ID and language code, in format: $returnValue[int $fieldDefinitionId][string $languageCode] = $fieldErrors;