Search for Constraint

  1. Search 7.x for Constraint
  2. Search 9.5.x for Constraint
  3. Search 8.9.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/Attribute/Constraint.php Defines a Constraint attribute object.
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::__construct function 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.
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.
BlockContentEntityChangedConstraint class core/modules/block_content/src/Plugin/Validation/Constraint/BlockContentEntityChangedConstraint.php Validation constraint for the block content entity changed timestamp.
BlockContentEntityChangedConstraint.php file core/modules/block_content/src/Plugin/Validation/Constraint/BlockContentEntityChangedConstraint.php
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
BlockContentRemoveConstraint class core/modules/block_content/tests/src/Functional/Update/BlockContentRemoveConstraint.php Tests the upgrade path for removing unique constraint on blocks.
BlockContentRemoveConstraint.php file core/modules/block_content/tests/src/Functional/Update/BlockContentRemoveConstraint.php
BlockContentRemoveConstraint::$entityDefinitionUpdateManager property core/modules/block_content/tests/src/Functional/Update/BlockContentRemoveConstraint.php Entity definition update manager.
BlockContentRemoveConstraint::getFieldInfoConstraints function core/modules/block_content/tests/src/Functional/Update/BlockContentRemoveConstraint.php Get constraints for info field.
BlockContentRemoveConstraint::setDatabaseDumpFiles function core/modules/block_content/tests/src/Functional/Update/BlockContentRemoveConstraint.php Set database dump files to be used.
BlockContentRemoveConstraint::setUp function core/modules/block_content/tests/src/Functional/Update/BlockContentRemoveConstraint.php
BlockContentRemoveConstraint::testRunUpdates function core/modules/block_content/tests/src/Functional/Update/BlockContentRemoveConstraint.php Tests the upgrade path for moderation state reindexing.
block_content_post_update_entity_changed_constraint function core/modules/block_content/block_content.post_update.php Clear the entity type cache.
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

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