Search for Constraint
- Search 7.x for Constraint
- Search 9.5.x for Constraint
- Search 8.9.x for Constraint
- Search 11.x for Constraint
- Search main for Constraint
- Other projects
Exact matches
| Title | Object type | File name | Summary |
|---|---|---|---|
| Constraint | class | core/ |
Defines a Constraint attribute object. |
| Constraint | class | core/ |
Defines a validation constraint annotation object. |
| Constraint | class | core/ |
A value object representing a Drupal version constraint. |
All search results
| Title | Object type | File name | Summary |
|---|---|---|---|
| EntityChangedConstraintValidator::validate | function | core/ |
|
| EntityConstraintViolationList | class | core/ |
Implements an entity constraint violation list. |
| EntityConstraintViolationList.php | file | core/ |
|
| EntityConstraintViolationList::$entity | property | core/ |
The entity that has been validated. |
| EntityConstraintViolationList::$entityViolationOffsets | property | core/ |
Violations offsets of entity level violations. |
| EntityConstraintViolationList::$violationOffsetsByField | property | core/ |
Violation offsets grouped by field. |
| EntityConstraintViolationList::add | function | core/ |
phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn |
| EntityConstraintViolationList::filterByFieldAccess | function | core/ |
Filters this violation list to apply for accessible fields only. |
| EntityConstraintViolationList::filterByFields | function | core/ |
Filters this violation list by the given fields. |
| EntityConstraintViolationList::findByCodes | function | core/ |
Filters this violation list by the given error codes. |
| EntityConstraintViolationList::getByField | function | core/ |
Gets the violations of the given field. |
| EntityConstraintViolationList::getByFields | function | core/ |
Gets the violations of the given fields. |
| EntityConstraintViolationList::getEntity | function | core/ |
The entity which has been validated. |
| EntityConstraintViolationList::getEntityViolations | function | core/ |
Gets violations flagged on entity level, not associated with any field. |
| EntityConstraintViolationList::getFieldNames | function | core/ |
Returns the names of all violated fields. |
| EntityConstraintViolationList::groupViolationOffsets | function | core/ |
Groups violation offsets by field and entity level. |
| EntityConstraintViolationList::remove | function | core/ |
phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn |
| EntityConstraintViolationList::set | function | core/ |
phpcs:ignore Drupal.Commenting.FunctionComment.VoidReturn |
| EntityConstraintViolationList::__construct | function | core/ |
|
| EntityConstraintViolationListInterface | interface | core/ |
Interface for the result of entity validation. |
| EntityConstraintViolationListInterface.php | file | core/ |
|
| EntityConstraintViolationListInterface::filterByFieldAccess | function | core/ |
Filters this violation list to apply for accessible fields only. |
| EntityConstraintViolationListInterface::filterByFields | function | core/ |
Filters this violation list by the given fields. |
| EntityConstraintViolationListInterface::findByCodes | function | core/ |
Filters this violation list by the given error codes. |
| EntityConstraintViolationListInterface::getByField | function | core/ |
Gets the violations of the given field. |
| EntityConstraintViolationListInterface::getByFields | function | core/ |
Gets the violations of the given fields. |
| EntityConstraintViolationListInterface::getEntity | function | core/ |
The entity which has been validated. |
| EntityConstraintViolationListInterface::getEntityViolations | function | core/ |
Gets violations flagged on entity level, not associated with any field. |
| EntityConstraintViolationListInterface::getFieldNames | function | core/ |
Returns the names of all violated fields. |
| EntityConstraintViolationListTest | class | core/ |
@coversDefaultClass \Drupal\Core\Entity\EntityConstraintViolationList[[api-linebreak]] @group entity |
| EntityConstraintViolationListTest.php | file | core/ |
|
| EntityConstraintViolationListTest::setupConstraintListWithCompositeConstraint | function | core/ |
Builds an entity constraint violation list with composite constraints. |
| EntityConstraintViolationListTest::setupConstraintListWithoutCompositeConstraint | function | core/ |
Builds an entity constraint violation list without composite constraints. |
| EntityConstraintViolationListTest::setupEntity | function | core/ |
Builds the entity. |
| EntityConstraintViolationListTest::testFilterByFieldAccess | function | core/ |
@covers ::filterByFieldAccess[[api-linebreak]] |
| EntityConstraintViolationListTest::testFilterByFieldAccessWithCompositeConstraint | function | core/ |
@covers ::filterByFieldAccess[[api-linebreak]] |
| EntityConstraintViolationListTest::testFilterByFields | function | core/ |
@covers ::filterByFields[[api-linebreak]] |
| EntityConstraintViolationListTest::testFilterByFieldsWithCompositeConstraints | function | core/ |
@covers ::filterByFields[[api-linebreak]] |
| EntityConstraintViolationListTest::testFindByCodes | function | core/ |
@covers ::findByCodes[[api-linebreak]] |
| EntityContextDefinition::getConstraintObjects | function | core/ |
Extracts an array of constraints for a context definition object. |
| EntityFieldTest::testEntityConstraintValidation | function | core/ |
Tests validation constraints provided by the Entity API. |
| EntityHasFieldConstraint | class | core/ |
Checks if a value is an entity that has a specific field. |
| EntityHasFieldConstraint.php | file | core/ |
|
| EntityHasFieldConstraint::$field_name | property | core/ |
The field name option. |
| EntityHasFieldConstraint::$message | property | core/ |
The default violation message. |
| EntityHasFieldConstraint::$notFieldableMessage | property | core/ |
The violation message for non-fieldable entities. |
| EntityHasFieldConstraint::getDefaultOption | function | core/ |
@todo Add method return type declaration. |
| EntityHasFieldConstraint::getRequiredOptions | function | core/ |
@todo Add method return type declaration. |
| EntityHasFieldConstraintValidator | class | core/ |
Validates the EntityHasField constraint. |
| EntityHasFieldConstraintValidator.php | file | core/ |
Pagination
- Previous page
- Page 7
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.