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
EntityBundleExistsConstraintValidatorTest::$modules property core/tests/Drupal/KernelTests/Core/Entity/EntityBundleExistsConstraintValidatorTest.php Modules to install.
EntityBundleExistsConstraintValidatorTest::setUp function core/tests/Drupal/KernelTests/Core/Entity/EntityBundleExistsConstraintValidatorTest.php
EntityBundleExistsConstraintValidatorTest::testDynamicEntityType function core/tests/Drupal/KernelTests/Core/Entity/EntityBundleExistsConstraintValidatorTest.php Tests getting the entity type ID.
EntityBundleExistsConstraintValidatorTest::testEntityTypeIdFromMultipleParents function core/tests/Drupal/KernelTests/Core/Entity/EntityBundleExistsConstraintValidatorTest.php Tests getting the entity type ID from a deeply nested property path.
EntityBundleExistsConstraintValidatorTest::testEntityTypeIdIsStatic function core/tests/Drupal/KernelTests/Core/Entity/EntityBundleExistsConstraintValidatorTest.php Tests validating a bundle of a known (static) entity type ID.
EntityBundleExistsConstraintValidatorTest::testInvalidEntityTypeId function core/tests/Drupal/KernelTests/Core/Entity/EntityBundleExistsConstraintValidatorTest.php Tests when the constraint's entityTypeId value is not valid.
EntityBundleExistsConstraintValidatorTest::testValueMustBeAString function core/tests/Drupal/KernelTests/Core/Entity/EntityBundleExistsConstraintValidatorTest.php Tests that the constraint validator will only work with strings.
EntityChangedConstraint class core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityChangedConstraint.php Validation constraint for the entity changed timestamp.
EntityChangedConstraint.php file core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityChangedConstraint.php
EntityChangedConstraint::__construct function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityChangedConstraint.php
EntityChangedConstraintValidator class core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityChangedConstraintValidator.php Validates the EntityChanged constraint.
EntityChangedConstraintValidator.php file core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityChangedConstraintValidator.php
EntityChangedConstraintValidator::validate function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityChangedConstraintValidator.php
EntityConstraintViolationList class core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php Implements an entity constraint violation list.
EntityConstraintViolationList.php file core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
EntityConstraintViolationList::$entity property core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php The entity that has been validated.
EntityConstraintViolationList::$entityViolationOffsets property core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php Violations offsets of entity level violations.
EntityConstraintViolationList::$violationOffsetsByField property core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php Violation offsets grouped by field.
EntityConstraintViolationList::add function core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
EntityConstraintViolationList::filterByFieldAccess function core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php Filters this violation list to apply for accessible fields only.
EntityConstraintViolationList::filterByFields function core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php Filters this violation list by the given fields.
EntityConstraintViolationList::findByCodes function core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php Filters this violation list by the given error codes.
EntityConstraintViolationList::getByField function core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php Gets the violations of the given field.
EntityConstraintViolationList::getByFields function core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php Gets the violations of the given fields.
EntityConstraintViolationList::getEntity function core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php The entity which has been validated.
EntityConstraintViolationList::getEntityViolations function core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php Gets violations flagged on entity level, not associated with any field.
EntityConstraintViolationList::getFieldNames function core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php Returns the names of all violated fields.
EntityConstraintViolationList::groupViolationOffsets function core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php Groups violation offsets by field and entity level.
EntityConstraintViolationList::remove function core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
EntityConstraintViolationList::set function core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
EntityConstraintViolationList::__construct function core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php
EntityConstraintViolationListInterface interface core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php Interface for the result of entity validation.
EntityConstraintViolationListInterface.php file core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php
EntityConstraintViolationListInterface::filterByFieldAccess function core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php Filters this violation list to apply for accessible fields only.
EntityConstraintViolationListInterface::filterByFields function core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php Filters this violation list by the given fields.
EntityConstraintViolationListInterface::findByCodes function core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php Filters this violation list by the given error codes.
EntityConstraintViolationListInterface::getByField function core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php Gets the violations of the given field.
EntityConstraintViolationListInterface::getByFields function core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php Gets the violations of the given fields.
EntityConstraintViolationListInterface::getEntity function core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php The entity which has been validated.
EntityConstraintViolationListInterface::getEntityViolations function core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php Gets violations flagged on entity level, not associated with any field.
EntityConstraintViolationListInterface::getFieldNames function core/lib/Drupal/Core/Entity/EntityConstraintViolationListInterface.php Returns the names of all violated fields.
EntityConstraintViolationListTest class core/tests/Drupal/Tests/Core/Entity/EntityConstraintViolationListTest.php Tests Drupal\Core\Entity\EntityConstraintViolationList.
EntityConstraintViolationListTest.php file core/tests/Drupal/Tests/Core/Entity/EntityConstraintViolationListTest.php
EntityConstraintViolationListTest::setupConstraintListWithCompositeConstraint function core/tests/Drupal/Tests/Core/Entity/EntityConstraintViolationListTest.php Builds an entity constraint violation list with composite constraints.
EntityConstraintViolationListTest::setupConstraintListWithoutCompositeConstraint function core/tests/Drupal/Tests/Core/Entity/EntityConstraintViolationListTest.php Builds an entity constraint violation list without composite constraints.
EntityConstraintViolationListTest::setupEntity function core/tests/Drupal/Tests/Core/Entity/EntityConstraintViolationListTest.php Builds the entity.
EntityConstraintViolationListTest::testFilterByFieldAccess function core/tests/Drupal/Tests/Core/Entity/EntityConstraintViolationListTest.php Tests filter by field access.
EntityConstraintViolationListTest::testFilterByFieldAccessWithCompositeConstraint function core/tests/Drupal/Tests/Core/Entity/EntityConstraintViolationListTest.php Tests filter by field access with composite constraint.
EntityConstraintViolationListTest::testFilterByFields function core/tests/Drupal/Tests/Core/Entity/EntityConstraintViolationListTest.php Tests filter by fields.
EntityConstraintViolationListTest::testFilterByFieldsWithCompositeConstraints function core/tests/Drupal/Tests/Core/Entity/EntityConstraintViolationListTest.php Tests filter by fields with composite constraints.

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