Search for violations

  1. Search 7.x for violations
  2. Search 9.5.x for violations
  3. Search 8.9.x for violations
  4. Search 10.3.x for violations
  5. Other projects
Title Object type File name Summary
AccountForm::flagViolations function core/modules/user/src/AccountForm.php Flags violations for the current form.
CKEditor5ValidationTestTrait::validatePairToViolationsArray function core/modules/ckeditor5/tests/src/Kernel/CKEditor5ValidationTestTrait.php Decorator for CKEditor5::validatePair() that returns an assertable array.
CKEditor5ValidationTestTrait::violationsToArray function core/modules/ckeditor5/tests/src/Kernel/CKEditor5ValidationTestTrait.php Transforms a constraint violation list object to an assertable array.
CommentForm::flagViolations function core/modules/comment/src/CommentForm.php Flags violations for the current form.
ConfigFormBase::formatMultipleViolationsMessage function core/lib/Drupal/Core/Form/ConfigFormBase.php Formats multiple violation messages associated with a single form element.
ContentEntityForm::flagViolations function core/lib/Drupal/Core/Entity/ContentEntityForm.php Flags violations for the current form.
ContentTranslationFieldSyncRevisionTest::assertViolations function core/modules/content_translation/tests/src/Kernel/ContentTranslationFieldSyncRevisionTest.php Asserts that the expected violations were found.
EntityConstraintViolationList::getEntityViolations function core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php Gets violations flagged on entity level, not associated with any field.
EntityConstraintViolationListInterface::getEntityViolations function core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php Gets violations flagged on entity level, not associated with any field.
EntityFormDisplay::flagWidgetsErrorsFromViolations function core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php Flags entity validation violations as form errors.
EntityFormDisplay::movePropertyPathViolationsRelativeToField function core/lib/Drupal/Core/Entity/Entity/EntityFormDisplay.php Moves the property path to be relative to field level.
EntityFormDisplayInterface::flagWidgetsErrorsFromViolations function core/lib/Drupal/Core/Entity/Display/EntityFormDisplayInterface.php Flags entity validation violations as form errors.
EntityValidationException::$violations property core/modules/migrate/src/Exception/EntityValidationException.php The list of violations generated during the entity validation.
EntityValidationException::getViolations function core/modules/migrate/src/Exception/EntityValidationException.php Returns the list of violations generated during the entity validation.
ExecutionContext::$violations property core/lib/Drupal/Core/Validation/ExecutionContext.php The violations generated in the current context.
ExecutionContext::getViolations function core/lib/Drupal/Core/Validation/ExecutionContext.php
FileUploadResult::$violations property core/modules/file/src/Upload/FileUploadResult.php The constraint violations.
FileUploadResult::addViolations function core/modules/file/src/Upload/FileUploadResult.php Adds constraint violations.
FileUploadResult::getViolations function core/modules/file/src/Upload/FileUploadResult.php Gets the constraint violations.
FileUploadResult::hasViolations function core/modules/file/src/Upload/FileUploadResult.php Returns TRUE if there are constraint violations.
JsonApiRegressionTest::testRecursionDetectedWhenResponseContainsViolationsFrom3042124 function core/modules/jsonapi/tests/src/Functional/JsonApiRegressionTest.php Tests that the response still has meaningful error messages.
PrecedingConstraintAwareValidatorTrait::hasViolationsForPrecedingConstraints function core/modules/ckeditor5/src/Plugin/Validation/Constraint/PrecedingConstraintAwareValidatorTrait.php Checks whether any preceding constraints have been violated.
RecursiveContextualValidator::getViolations function core/lib/Drupal/Core/TypedData/Validation/RecursiveContextualValidator.php
TermForm::flagViolations function core/modules/taxonomy/src/TermForm.php Flags violations for the current form.
UnprocessableHttpEntityException::$violations property core/modules/jsonapi/src/Exception/UnprocessableHttpEntityException.php The constraint violations associated with this exception.
UnprocessableHttpEntityException::getViolations function core/modules/jsonapi/src/Exception/UnprocessableHttpEntityException.php Gets the constraint violations associated with this exception.
UnprocessableHttpEntityException::setViolations function core/modules/jsonapi/src/Exception/UnprocessableHttpEntityException.php Sets the constraint violations associated with this exception.
UpdateSettingsForm::formatMultipleViolationsMessage function core/modules/update/src/UpdateSettingsForm.php Formats multiple violation messages associated with a single form element.
WorkspaceForm::flagViolations function core/modules/workspaces/src/Form/WorkspaceForm.php Flags violations for the current form.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.