class TestValidatedReferenceConstraint
Same name in other branches
- 9 core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/TestValidatedReferenceConstraint.php \Drupal\entity_test\Plugin\Validation\Constraint\TestValidatedReferenceConstraint
- 8.9.x core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/TestValidatedReferenceConstraint.php \Drupal\entity_test\Plugin\Validation\Constraint\TestValidatedReferenceConstraint
- 10 core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/TestValidatedReferenceConstraint.php \Drupal\entity_test\Plugin\Validation\Constraint\TestValidatedReferenceConstraint
Validates referenced entities.
Hierarchy
- class \Drupal\entity_test\Plugin\Validation\Constraint\TestValidatedReferenceConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of TestValidatedReferenceConstraint
1 string reference to 'TestValidatedReferenceConstraint'
- RecursiveContextualValidatorTest::testRecursiveViolationPropagation in core/
tests/ Drupal/ KernelTests/ Core/ TypedData/ RecursiveContextualValidatorTest.php - Tests recursive propagation of violations.
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Plugin/ Validation/ Constraint/ TestValidatedReferenceConstraint.php, line 14
Namespace
Drupal\entity_test\Plugin\Validation\ConstraintView source
class TestValidatedReferenceConstraint extends SymfonyConstraint {
/**
* The default violation message.
*
* @var string
*/
public $message = 'Invalid referenced entity.';
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TestValidatedReferenceConstraint::$message | public | property | The default violation message. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.