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
CommentNameConstraint::$messageNameTaken property core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraint.php Message shown when an anonymous user comments using a registered name.
CommentNameConstraint::$messageRequired property core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraint.php Message shown when an admin changes the comment-author to an invalid user.
CommentNameConstraint::coversFields function core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraint.php An array of entity fields which should be passed to the validator.
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::$context property core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php Validator 2.5 and upwards compatible execution context.
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.
CommentNameConstraintValidator::getAnonymousContactDetailsSetting function core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php Gets the anonymous contact details setting from the comment.
CommentNameConstraintValidator::validate function core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php
CommentNameConstraintValidator::__construct function core/modules/comment/src/Plugin/Validation/Constraint/CommentNameConstraintValidator.php Constructs a new CommentNameConstraintValidator.
ComplexDataConstraint class core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ComplexDataConstraint.php Complex data constraint.
ComplexDataConstraint.php file core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ComplexDataConstraint.php
ComplexDataConstraint::$properties property core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ComplexDataConstraint.php An array of constraints for contained properties, keyed by property name.
ComplexDataConstraint::getDefaultOption function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ComplexDataConstraint.php
ComplexDataConstraint::getRequiredOptions function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ComplexDataConstraint.php
ComplexDataConstraint::__construct function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ComplexDataConstraint.php
ComplexDataConstraintValidator class core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ComplexDataConstraintValidator.php Validates complex data.
ComplexDataConstraintValidator.php file core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ComplexDataConstraintValidator.php
ComplexDataConstraintValidator::validate function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ComplexDataConstraintValidator.php
ComplexDataConstraintValidatorTest class core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php Tests ComplexData validation constraint with both valid and invalid values
for a key.
ComplexDataConstraintValidatorTest.php file core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php
ComplexDataConstraintValidatorTest::$typedData property core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php The typed data manager to use.
ComplexDataConstraintValidatorTest::setUp function core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php
ComplexDataConstraintValidatorTest::testValidation function core/tests/Drupal/KernelTests/Core/TypedData/ComplexDataConstraintValidatorTest.php Tests the ComplexData validation constraint validator.
CompositeConstraintBase class core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/CompositeConstraintBase.php Provides a base class for constraints validating multiple fields.
CompositeConstraintBase.php file core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/CompositeConstraintBase.php
CompositeConstraintBase::coversFields function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/CompositeConstraintBase.php An array of entity fields which should be passed to the validator.
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.
Constraint.php file core/lib/Drupal/Core/Validation/Annotation/Constraint.php
Constraint.php file core/lib/Drupal/Component/Version/Constraint.php
Constraint::$constraint property core/lib/Drupal/Component/Version/Constraint.php The constraint represented as a string. For example '>=8.x-5.x'.
Constraint::$constraintArray property core/lib/Drupal/Component/Version/Constraint.php A list of associative arrays representing the constraint.
Constraint::$id property core/lib/Drupal/Core/Validation/Annotation/Constraint.php The constraint plugin ID.
Constraint::$label property core/lib/Drupal/Core/Validation/Annotation/Constraint.php The human-readable name of the constraint plugin.
Constraint::$type property core/lib/Drupal/Core/Validation/Annotation/Constraint.php An array of DataType plugin IDs for which this constraint applies. Valid
values are any types registered by the typed data API, or an array of
multiple type names. For supporting all types, FALSE may be specified. The
key defaults to an empty array,…
Constraint::isCompatible function core/lib/Drupal/Component/Version/Constraint.php Determines if the provided version is satisfied by this constraint.
Constraint::parseConstraint function core/lib/Drupal/Component/Version/Constraint.php Parses a constraint string.
Constraint::toArray function core/lib/Drupal/Component/Version/Constraint.php A list of associative arrays representing the constraint.
Constraint::__construct function core/lib/Drupal/Component/Version/Constraint.php Constraint constructor.
Constraint::__toString function core/lib/Drupal/Component/Version/Constraint.php Gets the constraint as a string.
ConstraintManager class core/lib/Drupal/Core/Validation/ConstraintManager.php Constraint plugin manager.
ConstraintManager.php file core/lib/Drupal/Core/Validation/ConstraintManager.php
ConstraintManager::create function core/lib/Drupal/Core/Validation/ConstraintManager.php Creates a validation constraint.
ConstraintManager::getDefinitionsByType function core/lib/Drupal/Core/Validation/ConstraintManager.php Returns a list of constraints that support the given type.
ConstraintManager::getDiscovery function core/lib/Drupal/Core/Validation/ConstraintManager.php Gets the plugin discovery.
ConstraintManager::processDefinition function core/lib/Drupal/Core/Validation/ConstraintManager.php Performs extra processing on plugin definitions.
ConstraintManager::registerDefinitions function core/lib/Drupal/Core/Validation/ConstraintManager.php Callback for registering definitions for constraints shipped with Symfony.
ConstraintManager::__construct function core/lib/Drupal/Core/Validation/ConstraintManager.php Overrides \Drupal\Component\Plugin\PluginManagerBase::__construct().

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