class TestValidatedReferenceConstraint
Same name in other branches
- 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
- 11.x 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 - Tests 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
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.