Search for Constraint

  1. Search 7.x for Constraint
  2. Search 9.5.x for Constraint
  3. Search 10.3.x for Constraint
  4. Search 11.x for Constraint
  5. Search main for Constraint
  6. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Constraint class core/lib/Drupal/Core/Validation/Annotation/Constraint.php Defines a validation constraint annotation object.
Constraint class core/lib/Drupal/Component/Version/Constraint.php A value object representing a Drupal version constraint.

All search results

Title Object type File name Summary
AllowedValuesConstraint class core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraint.php Checks for the value being allowed.
AllowedValuesConstraint.php file core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraint.php
AllowedValuesConstraint::$maxMessage property core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraint.php
AllowedValuesConstraint::$minMessage property core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraint.php
AllowedValuesConstraint::$strict property core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraint.php
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.
BaseFieldDefinition::addPropertyConstraints function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Adds constraints for a given field item property.
BaseFieldDefinition::setPropertyConstraints function core/lib/Drupal/Core/Field/BaseFieldDefinition.php Sets constraints for a given field item property.
BookOutlineConstraint class core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraint.php Validation constraint for changing the book outline in pending revisions.
BookOutlineConstraint.php file core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraint.php
BookOutlineConstraint::$message property core/modules/book/src/Plugin/Validation/Constraint/BookOutlineConstraint.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.
BundleConstraint class core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php Checks if a value is a valid entity type.
BundleConstraint.php file core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php
BundleConstraint::$bundle property core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php The bundle option.
BundleConstraint::$message property core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php The default violation message.
BundleConstraint::getBundleOption function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php Gets the bundle option as array.
BundleConstraint::getDefaultOption function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php
BundleConstraint::getRequiredOptions function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php
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 enable.
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.
CommentNameConstraint class core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraint.php Supports validating comment author names.
CommentNameConstraint.php file core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraint.php
CommentNameConstraint::$messageMatch property core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraint.php Message shown when the name doesn't match the author's name.

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