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 10.3.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.
AltTextContainsLlamasConstraintValidator class core/modules/image/tests/modules/image_field_property_constraint_validation/src/Plugin/Validation/Constraint/AltTextContainsLlamasConstraintValidator.php Validates the alt text contains llamas.
AltTextContainsLlamasConstraintValidator.php file core/modules/image/tests/modules/image_field_property_constraint_validation/src/Plugin/Validation/Constraint/AltTextContainsLlamasConstraintValidator.php
AltTextContainsLlamasConstraintValidator::validate function core/modules/image/tests/modules/image_field_property_constraint_validation/src/Plugin/Validation/Constraint/AltTextContainsLlamasConstraintValidator.php
AtLeastOneOfConstraintValidator class core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AtLeastOneOfConstraintValidator.php Validates the AtLeastOneOf constraint.
AtLeastOneOfConstraintValidator.php file core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AtLeastOneOfConstraintValidator.php
AtLeastOneOfConstraintValidator::validate function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AtLeastOneOfConstraintValidator.php Validate a set of constraints against a value.
AtLeastOneOfConstraintValidatorTest class core/tests/Drupal/KernelTests/Core/Validation/AtLeastOneOfConstraintValidatorTest.php Tests AtLeastOneOf validation constraint with both valid and invalid values.
AtLeastOneOfConstraintValidatorTest.php file core/tests/Drupal/KernelTests/Core/Validation/AtLeastOneOfConstraintValidatorTest.php
AtLeastOneOfConstraintValidatorTest::$typedData property core/tests/Drupal/KernelTests/Core/Validation/AtLeastOneOfConstraintValidatorTest.php The typed data manager to use.
AtLeastOneOfConstraintValidatorTest::dataProvider function core/tests/Drupal/KernelTests/Core/Validation/AtLeastOneOfConstraintValidatorTest.php Data provider for testValidation().
AtLeastOneOfConstraintValidatorTest::setUp function core/tests/Drupal/KernelTests/Core/Validation/AtLeastOneOfConstraintValidatorTest.php
AtLeastOneOfConstraintValidatorTest::testValidation function core/tests/Drupal/KernelTests/Core/Validation/AtLeastOneOfConstraintValidatorTest.php Tests the AllowedValues validation constraint validator.
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
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

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