Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
0 / 0 |
CRAP | |
100.00% |
0 / 0 |
ReferenceAccessConstraint | |
100.00% |
1 / 1 |
|
100.00% |
0 / 0 |
0 | |
100.00% |
0 / 0 |
<?php | |
/** | |
* @file | |
* Contains \Drupal\Core\Entity\Plugin\Validation\Constraint\ReferenceAccessConstraint. | |
*/ | |
namespace Drupal\Core\Entity\Plugin\Validation\Constraint; | |
use Symfony\Component\Validator\Constraint; | |
/** | |
* Entity Reference valid reference constraint. | |
* | |
* Verifies that referenced entities are valid. | |
* | |
* @Constraint( | |
* id = "ReferenceAccess", | |
* label = @Translation("Entity Reference reference access", context = "Validation") | |
* ) | |
*/ | |
class ReferenceAccessConstraint extends Constraint { | |
/** | |
* The default violation message. | |
* | |
* @var string | |
*/ | |
public $message = 'You do not have access to the referenced entity (%type: %id).'; | |
} |