Search for ConstraintValidator

  1. Search 7.x for ConstraintValidator
  2. Search 9.5.x for ConstraintValidator
  3. Search 8.9.x for ConstraintValidator
  4. Search 11.x for ConstraintValidator
  5. Other projects
Title Object type File name Summary
AllowedValuesConstraintValidator class core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraintValidator.php Validates the AllowedValues constraint.
AllowedValuesConstraintValidator.php file core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraintValidator.php
AllowedValuesConstraintValidator::$currentUser property core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraintValidator.php The current user.
AllowedValuesConstraintValidator::create function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraintValidator.php Instantiates a new instance of this class.
AllowedValuesConstraintValidator::validate function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraintValidator.php
AllowedValuesConstraintValidator::__construct function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraintValidator.php Constructs a new AllowedValuesConstraintValidator.
AllowedValuesConstraintValidatorTest class core/tests/Drupal/KernelTests/Core/TypedData/AllowedValuesConstraintValidatorTest.php Tests AllowedValues validation constraint with both valid and invalid values.
AllowedValuesConstraintValidatorTest.php file core/tests/Drupal/KernelTests/Core/TypedData/AllowedValuesConstraintValidatorTest.php
AllowedValuesConstraintValidatorTest::$typedData property core/tests/Drupal/KernelTests/Core/TypedData/AllowedValuesConstraintValidatorTest.php The typed data manager to use.
AllowedValuesConstraintValidatorTest::allowedValueCallback function core/tests/Drupal/KernelTests/Core/TypedData/AllowedValuesConstraintValidatorTest.php An AllowedValueConstraint callback.
AllowedValuesConstraintValidatorTest::setUp function core/tests/Drupal/KernelTests/Core/TypedData/AllowedValuesConstraintValidatorTest.php
AllowedValuesConstraintValidatorTest::testValidation function core/tests/Drupal/KernelTests/Core/TypedData/AllowedValuesConstraintValidatorTest.php Tests the AllowedValues validation constraint validator.
AllowedValuesConstraintValidatorTest::testValidationCallback function core/tests/Drupal/KernelTests/Core/TypedData/AllowedValuesConstraintValidatorTest.php Tests the AllowedValuesConstraintValidator with callbacks.
AllowedValuesConstraintValidatorTest::testValidationCallbackException function core/tests/Drupal/KernelTests/Core/TypedData/AllowedValuesConstraintValidatorTest.php Tests the AllowedValuesConstraintValidator with an invalid callback.
BaseFileConstraintValidator class core/modules/file/src/Plugin/Validation/Constraint/BaseFileConstraintValidator.php Provides a base class for file constraint validators.
BaseFileConstraintValidator.php file core/modules/file/src/Plugin/Validation/Constraint/BaseFileConstraintValidator.php
BaseFileConstraintValidator::assertValueIsFile function core/modules/file/src/Plugin/Validation/Constraint/BaseFileConstraintValidator.php Checks the value is of type FileInterface.
BlockContentEntityChangedConstraintValidator class core/modules/block_content/src/Plugin/Validation/Constraint/BlockContentEntityChangedConstraintValidator.php Validates the BlockContentEntityChanged constraint.
BlockContentEntityChangedConstraintValidator.php file core/modules/block_content/src/Plugin/Validation/Constraint/BlockContentEntityChangedConstraintValidator.php
BlockContentEntityChangedConstraintValidator::validate function core/modules/block_content/src/Plugin/Validation/Constraint/BlockContentEntityChangedConstraintValidator.php
BookOutlineConstraintValidator class core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraintValidator.php Constraint validator for changing the book outline in pending revisions.
BookOutlineConstraintValidator.php file core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraintValidator.php
BookOutlineConstraintValidator::$bookManager property core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraintValidator.php The book manager.
BookOutlineConstraintValidator::create function core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraintValidator.php Instantiates a new instance of this class.
BookOutlineConstraintValidator::validate function core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraintValidator.php
BookOutlineConstraintValidator::__construct function core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraintValidator.php Creates a new BookOutlineConstraintValidator instance.
BundleConstraintValidator class core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraintValidator.php Validates the Bundle constraint.
BundleConstraintValidator.php file core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraintValidator.php
BundleConstraintValidator::validate function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraintValidator.php phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn
BundleConstraintValidatorTest class core/tests/Drupal/KernelTests/Core/Entity/BundleConstraintValidatorTest.php Tests validation constraints for BundleConstraintValidator.
BundleConstraintValidatorTest.php file core/tests/Drupal/KernelTests/Core/Entity/BundleConstraintValidatorTest.php
BundleConstraintValidatorTest::$modules property core/tests/Drupal/KernelTests/Core/Entity/BundleConstraintValidatorTest.php Modules to install.
BundleConstraintValidatorTest::$typedData property core/tests/Drupal/KernelTests/Core/Entity/BundleConstraintValidatorTest.php The typed data manager to use.
BundleConstraintValidatorTest::assertValidation function core/tests/Drupal/KernelTests/Core/Entity/BundleConstraintValidatorTest.php Executes the BundleConstraintValidator test for a given bundle.
BundleConstraintValidatorTest::setUp function core/tests/Drupal/KernelTests/Core/Entity/BundleConstraintValidatorTest.php
BundleConstraintValidatorTest::testValidation function core/tests/Drupal/KernelTests/Core/Entity/BundleConstraintValidatorTest.php Tests bundle constraint validation.
CKEditor5ElementConstraintValidator class core/modules/ckeditor5/src/Plugin/Validation/Constraint/CKEditor5ElementConstraintValidator.php CKEditor 5 element validator.
CKEditor5ElementConstraintValidator.php file core/modules/ckeditor5/src/Plugin/Validation/Constraint/CKEditor5ElementConstraintValidator.php
CKEditor5ElementConstraintValidator::validate function core/modules/ckeditor5/src/Plugin/Validation/Constraint/CKEditor5ElementConstraintValidator.php
CKEditor5MediaAndFilterSettingsInSyncConstraintValidator class core/modules/ckeditor5/src/Plugin/Validation/Constraint/CKEditor5MediaAndFilterSettingsInSyncConstraintValidator.php CKEditor 5 Media plugin in sync with the filter settings validator.
CKEditor5MediaAndFilterSettingsInSyncConstraintValidator.php file core/modules/ckeditor5/src/Plugin/Validation/Constraint/CKEditor5MediaAndFilterSettingsInSyncConstraintValidator.php
CKEditor5MediaAndFilterSettingsInSyncConstraintValidator::$filterPluginManager property core/modules/ckeditor5/src/Plugin/Validation/Constraint/CKEditor5MediaAndFilterSettingsInSyncConstraintValidator.php The filter plugin manager service.
CKEditor5MediaAndFilterSettingsInSyncConstraintValidator::$typedConfigManager property core/modules/ckeditor5/src/Plugin/Validation/Constraint/CKEditor5MediaAndFilterSettingsInSyncConstraintValidator.php The typed config manager service.
CKEditor5MediaAndFilterSettingsInSyncConstraintValidator::create function core/modules/ckeditor5/src/Plugin/Validation/Constraint/CKEditor5MediaAndFilterSettingsInSyncConstraintValidator.php Instantiates a new instance of this class.
CKEditor5MediaAndFilterSettingsInSyncConstraintValidator::validate function core/modules/ckeditor5/src/Plugin/Validation/Constraint/CKEditor5MediaAndFilterSettingsInSyncConstraintValidator.php
CKEditor5MediaAndFilterSettingsInSyncConstraintValidator::__construct function core/modules/ckeditor5/src/Plugin/Validation/Constraint/CKEditor5MediaAndFilterSettingsInSyncConstraintValidator.php Constructs a new CKEditor5MediaAndFilterSettingsInSyncConstraintValidator.
CommentNameConstraintValidator class core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php Validates the CommentName constraint.
CommentNameConstraintValidator.php file core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php
CommentNameConstraintValidator::$userStorage property core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php User storage handler.
CommentNameConstraintValidator::create function core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php Instantiates a new instance of this class.

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