TestValidatedReferenceConstraint.php
Same filename in other branches
- 9 core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/TestValidatedReferenceConstraint.php
- 10 core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/TestValidatedReferenceConstraint.php
- 11.x core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/TestValidatedReferenceConstraint.php
Namespace
Drupal\entity_test\Plugin\Validation\ConstraintFile
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ Plugin/ Validation/ Constraint/ TestValidatedReferenceConstraint.php
View source
<?php
namespace Drupal\entity_test\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Validates referenced entities.
*
* @Constraint(
* id = "TestValidatedReferenceConstraint",
* label = @Translation("Test validated reference constraint.")
* )
*/
class TestValidatedReferenceConstraint extends Constraint {
/**
* The default violation message.
*
* @var string
*/
public $message = 'Invalid referenced entity.';
}
Classes
Title | Deprecated | Summary |
---|---|---|
TestValidatedReferenceConstraint | Validates referenced entities. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.