class TestValidatedReferenceConstraint

Same name in other branches
  1. 9 core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/TestValidatedReferenceConstraint.php \Drupal\entity_test\Plugin\Validation\Constraint\TestValidatedReferenceConstraint
  2. 8.9.x core/modules/system/tests/modules/entity_test/src/Plugin/Validation/Constraint/TestValidatedReferenceConstraint.php \Drupal\entity_test\Plugin\Validation\Constraint\TestValidatedReferenceConstraint
  3. 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.

Hierarchy

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 12

Namespace

Drupal\entity_test\Plugin\Validation\Constraint
View 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.