Search for Constraint

  1. Search 7.x for Constraint
  2. Search 8.9.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
EnabledConfigurablePluginsConstraintValidator.php file core/modules/ckeditor5/src/Plugin/Validation/Constraint/EnabledConfigurablePluginsConstraintValidator.php
EnabledConfigurablePluginsConstraintValidator::getConfigurableEnabledDefinitions function core/modules/ckeditor5/src/Plugin/Validation/Constraint/EnabledConfigurablePluginsConstraintValidator.php Gets all configurable CKEditor 5 plugin definitions that are enabled.
EnabledConfigurablePluginsConstraintValidator::validate function core/modules/ckeditor5/src/Plugin/Validation/Constraint/EnabledConfigurablePluginsConstraintValidator.php
EntityAdapterUnitTest::testGetConstraints function core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php @covers ::getConstraints[[api-linebreak]]
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::$message property 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::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::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]]
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.

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