class TestValidatedReferenceConstraint in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/TestValidatedReferenceConstraint.php \Drupal\entity_test\Plugin\Validation\Constraint\TestValidatedReferenceConstraint
Validates referenced entities.
Plugin annotation
@Constraint(
id = "TestValidatedReferenceConstraint",
label = @Translation("Test validated reference constraint.")
)
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 - Test recursive propagation of violations.
File
- core/
modules/ system/ tests/ modules/ entity_test/ src/ Plugin/ Validation/ Constraint/ TestValidatedReferenceConstraint.php, line 15
Namespace
Drupal\entity_test\Plugin\Validation\ConstraintView source
class TestValidatedReferenceConstraint extends Constraint {
/**
* The default violation message.
*
* @var string
*/
public $message = 'Invalid referenced entity.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestValidatedReferenceConstraint:: |
public | property | The default violation message. |