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
ValidKeysConstraintValidator::getDynamicMessageParameters function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ValidKeysConstraintValidator.php Computes message parameters for dynamic type violations.
ValidKeysConstraintValidator::validate function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ValidKeysConstraintValidator.php
ValidKeysConstraintValidatorTest class core/tests/Drupal/KernelTests/Core/TypedData/ValidKeysConstraintValidatorTest.php Tests the ValidKeys validation constraint.
ValidKeysConstraintValidatorTest.php file core/tests/Drupal/KernelTests/Core/TypedData/ValidKeysConstraintValidatorTest.php
ValidKeysConstraintValidatorTest::$config property core/tests/Drupal/KernelTests/Core/TypedData/ValidKeysConstraintValidatorTest.php The typed config under test.
ValidKeysConstraintValidatorTest::assertValidationErrors function core/tests/Drupal/KernelTests/Core/TypedData/ValidKeysConstraintValidatorTest.php Asserts a set of validation errors is raised when the config is validated.
ValidKeysConstraintValidatorTest::setUp function core/tests/Drupal/KernelTests/Core/TypedData/ValidKeysConstraintValidatorTest.php
ValidKeysConstraintValidatorTest::testBothUnknownAndDynamicallyRequiredKeys function core/tests/Drupal/KernelTests/Core/TypedData/ValidKeysConstraintValidatorTest.php Tests detecting both unknown and required keys.
ValidKeysConstraintValidatorTest::testDynamicallyRequiredKeys function core/tests/Drupal/KernelTests/Core/TypedData/ValidKeysConstraintValidatorTest.php Tests detecting missing dynamically required keys.
ValidKeysConstraintValidatorTest::testMarkedAsOptional function core/tests/Drupal/KernelTests/Core/TypedData/ValidKeysConstraintValidatorTest.php Tests ValidKeys constraint validator detecting optional keys.
ValidKeysConstraintValidatorTest::testRequiredKeys function core/tests/Drupal/KernelTests/Core/TypedData/ValidKeysConstraintValidatorTest.php Tests detecting missing required keys.
ValidKeysConstraintValidatorTest::testSupportedKeys function core/tests/Drupal/KernelTests/Core/TypedData/ValidKeysConstraintValidatorTest.php Tests detecting unsupported keys.
ValidKeysConstraintValidatorTest::testUnknownKeys function core/tests/Drupal/KernelTests/Core/TypedData/ValidKeysConstraintValidatorTest.php Tests detecting unknown keys.
ValidKeysConstraintValidatorTest::testValidation function core/tests/Drupal/KernelTests/Core/TypedData/ValidKeysConstraintValidatorTest.php Tests the ValidKeys constraint validator.
ValidKeysConstraintValidatorTest::testValidKeyInference function core/tests/Drupal/KernelTests/Core/TypedData/ValidKeysConstraintValidatorTest.php Tests that valid keys can be inferred from the data definition.
ValidPathConstraintValidator class core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/ValidPathConstraintValidator.php Constraint validator for validating system paths.
ValidPathConstraintValidator.php file core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/ValidPathConstraintValidator.php
ValidPathConstraintValidator::$pathValidator property core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/ValidPathConstraintValidator.php The path validator.
ValidPathConstraintValidator::create function core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/ValidPathConstraintValidator.php Instantiates a new instance of this class.
ValidPathConstraintValidator::validate function core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/ValidPathConstraintValidator.php
ValidPathConstraintValidator::__construct function core/lib/Drupal/Core/Path/Plugin/Validation/Constraint/ValidPathConstraintValidator.php Creates a new ValidPathConstraintValidator instance.
ValidReferenceConstraintValidator class core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/ValidReferenceConstraintValidator.php Checks if referenced entities are valid.
ValidReferenceConstraintValidator.php file core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/ValidReferenceConstraintValidator.php
ValidReferenceConstraintValidator::$entityTypeManager property core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/ValidReferenceConstraintValidator.php The entity type manager.
ValidReferenceConstraintValidator::$selectionManager property core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/ValidReferenceConstraintValidator.php The selection plugin manager.
ValidReferenceConstraintValidator::create function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/ValidReferenceConstraintValidator.php Instantiates a new instance of this class.
ValidReferenceConstraintValidator::validate function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/ValidReferenceConstraintValidator.php
ValidReferenceConstraintValidator::__construct function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/ValidReferenceConstraintValidator.php Constructs a ValidReferenceConstraintValidator object.
ValidReferenceConstraintValidatorTest class core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php Tests validation constraints for ValidReferenceConstraintValidator.
ValidReferenceConstraintValidatorTest.php file core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php
ValidReferenceConstraintValidatorTest::$modules property core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php Modules to install.
ValidReferenceConstraintValidatorTest::$typedData property core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php The typed data manager to use.
ValidReferenceConstraintValidatorTest::setUp function core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php
ValidReferenceConstraintValidatorTest::testPreExistingItemsValidation function core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php Tests the validation of pre-existing items in an entity reference field.
ValidReferenceConstraintValidatorTest::testValidation function core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php Tests the ValidReferenceConstraintValidator.

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