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
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 phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn
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 phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn
EntityConstraintViolationList::set function core/lib/Drupal/Core/Entity/EntityConstraintViolationList.php phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn
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 @coversDefaultClass \Drupal\Core\Entity\EntityConstraintViolationList[[api-linebreak]]
@group entity
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 @covers ::filterByFieldAccess[[api-linebreak]]
EntityConstraintViolationListTest::testFilterByFieldAccessWithCompositeConstraint function core/tests/Drupal/Tests/Core/Entity/EntityConstraintViolationListTest.php @covers ::filterByFieldAccess[[api-linebreak]]
EntityConstraintViolationListTest::testFilterByFields function core/tests/Drupal/Tests/Core/Entity/EntityConstraintViolationListTest.php @covers ::filterByFields[[api-linebreak]]
EntityConstraintViolationListTest::testFilterByFieldsWithCompositeConstraints function core/tests/Drupal/Tests/Core/Entity/EntityConstraintViolationListTest.php @covers ::filterByFields[[api-linebreak]]
EntityConstraintViolationListTest::testFindByCodes function core/tests/Drupal/Tests/Core/Entity/EntityConstraintViolationListTest.php @covers ::findByCodes[[api-linebreak]]
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::$field_name property core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php The field name option.
EntityHasFieldConstraint::$message property core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php The default violation message.
EntityHasFieldConstraint::$notFieldableMessage property core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php The violation message for non-fieldable entities.
EntityHasFieldConstraint::getDefaultOption function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php @todo Add method return type declaration.
EntityHasFieldConstraint::getRequiredOptions function core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/EntityHasFieldConstraint.php @todo Add method return type declaration.
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

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