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 10.3.x for Constraint
  5. Search 11.x 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
EntityConstraintViolationListTest::testFindByCodes function core/tests/Drupal/Tests/Core/Entity/EntityConstraintViolationListTest.php Tests find by codes.
EntityContextDefinition::getConstraintObjects function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Extracts an array of constraints for a context definition object.
EntityFieldTest::testEntityConstraintValidation function core/tests/Drupal/KernelTests/Core/Entity/EntityFieldTest.php Tests validation constraints provided by the Entity API.
EntityHasFieldConstraint class core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php Checks if a value is an entity that has a specific field.
EntityHasFieldConstraint.php file core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php
EntityHasFieldConstraint::__construct function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php
EntityHasFieldConstraintValidator class core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraintValidator.php Validates the EntityHasField constraint.
EntityHasFieldConstraintValidator.php file core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraintValidator.php
EntityHasFieldConstraintValidator::validate function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraintValidator.php
EntityHasFieldConstraintValidatorTest class core/tests/Drupal/KernelTests/Core/Entity/EntityHasFieldConstraintValidatorTest.php Tests Entity Has Field Constraint Validator.
EntityHasFieldConstraintValidatorTest.php file core/tests/Drupal/KernelTests/Core/Entity/EntityHasFieldConstraintValidatorTest.php
EntityHasFieldConstraintValidatorTest::$modules property core/tests/Drupal/KernelTests/Core/Entity/EntityHasFieldConstraintValidatorTest.php Modules to install.
EntityHasFieldConstraintValidatorTest::setUp function core/tests/Drupal/KernelTests/Core/Entity/EntityHasFieldConstraintValidatorTest.php
EntityHasFieldConstraintValidatorTest::testValidation function core/tests/Drupal/KernelTests/Core/Entity/EntityHasFieldConstraintValidatorTest.php Tests validation of an entity with a field.
EntityReferenceFieldItemList::getConstraints function core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php Gets a list of validation constraints.
EntityReferenceItem::getConstraints function core/lib/Drupal/Core/Field/Plugin/Field/FieldType/EntityReferenceItem.php Gets a list of validation constraints.
EntityReferenceSupportedNewEntitiesConstraint class core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraint.php The entity reference supported new entities constraint.
EntityReferenceSupportedNewEntitiesConstraint.php file core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraint.php
EntityReferenceSupportedNewEntitiesConstraint::__construct function core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraint.php
EntityReferenceSupportedNewEntitiesConstraintValidator class core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraintValidator.php Checks if new entities created for entity reference fields are supported.
EntityReferenceSupportedNewEntitiesConstraintValidator.php file core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraintValidator.php
EntityReferenceSupportedNewEntitiesConstraintValidator::$entityTypeManager property core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraintValidator.php The entity type manager.
EntityReferenceSupportedNewEntitiesConstraintValidator::$workspaceInfo property core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraintValidator.php The workspace information service.
EntityReferenceSupportedNewEntitiesConstraintValidator::$workspaceManager property core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraintValidator.php The workspace manager.
EntityReferenceSupportedNewEntitiesConstraintValidator::create function core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraintValidator.php Instantiates a new instance of this class.
EntityReferenceSupportedNewEntitiesConstraintValidator::validate function core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraintValidator.php
EntityReferenceSupportedNewEntitiesConstraintValidator::__construct function core/modules/workspaces/src/Plugin/Validation/Constraint/EntityReferenceSupportedNewEntitiesConstraintValidator.php
EntityReferenceSupportedNewEntitiesConstraintValidatorTest class core/modules/workspaces/tests/src/Kernel/EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php Tests Drupal\workspaces\Plugin\Validation\Constraint\EntityReferenceSupportedNewEntitiesConstraintValidator.
EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php file core/modules/workspaces/tests/src/Kernel/EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php
EntityReferenceSupportedNewEntitiesConstraintValidatorTest::$entityTypeManager property core/modules/workspaces/tests/src/Kernel/EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php The entity type manager.
EntityReferenceSupportedNewEntitiesConstraintValidatorTest::$modules property core/modules/workspaces/tests/src/Kernel/EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php Modules to install.
EntityReferenceSupportedNewEntitiesConstraintValidatorTest::setUp function core/modules/workspaces/tests/src/Kernel/EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php
EntityReferenceSupportedNewEntitiesConstraintValidatorTest::testNewEntitiesAllowedInDefaultWorkspace function core/modules/workspaces/tests/src/Kernel/EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php Tests new entities allowed in default workspace.
EntityReferenceSupportedNewEntitiesConstraintValidatorTest::testNewEntitiesForbiddenInNonDefaultWorkspace function core/modules/workspaces/tests/src/Kernel/EntityReferenceSupportedNewEntitiesConstraintValidatorTest.php Tests new entities forbidden in non default workspace.
EntityTestCompositeConstraint class core/modules/system/tests/modules/entity_test/src/Entity/EntityTestCompositeConstraint.php Defines a test class for testing composite constraints.
EntityTestCompositeConstraint class core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraint.php Constraint with multiple fields.
EntityTestCompositeConstraint.php file core/modules/system/tests/modules/entity_test/src/Entity/EntityTestCompositeConstraint.php
EntityTestCompositeConstraint.php file core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraint.php
EntityTestCompositeConstraint::baseFieldDefinitions function core/modules/system/tests/modules/entity_test/src/Entity/EntityTestCompositeConstraint.php Provides base field definitions for an entity type.
EntityTestCompositeConstraint::coversFields function core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraint.php An array of entity fields which should be passed to the validator.
EntityTestCompositeConstraint::__construct function core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraint.php
EntityTestCompositeConstraintValidator class core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraintValidator.php Constraint validator for the EntityTestComposite constraint.
EntityTestCompositeConstraintValidator.php file core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraintValidator.php
EntityTestCompositeConstraintValidator::validate function core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/EntityTestCompositeConstraintValidator.php
EntityTestConstraints class core/modules/system/tests/modules/entity_test/src/Entity/EntityTestConstraints.php Defines a test class for testing the definition of entity level constraints.
EntityTestConstraints.php file core/modules/system/tests/modules/entity_test/src/Entity/EntityTestConstraints.php
EntityTestConstraints::baseFieldDefinitions function core/modules/system/tests/modules/entity_test/src/Entity/EntityTestConstraints.php Provides base field definitions for an entity type.
EntityTestConstraintsHooks class core/modules/system/tests/modules/entity_test_constraints/src/Hook/EntityTestConstraintsHooks.php Hook implementations for entity_test_constraints.
EntityTestConstraintsHooks.php file core/modules/system/tests/modules/entity_test_constraints/src/Hook/EntityTestConstraintsHooks.php
EntityTestConstraintsHooks::entityTypeAlter function core/modules/system/tests/modules/entity_test_constraints/src/Hook/EntityTestConstraintsHooks.php Implements hook_entity_type_alter().

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