ReferenceAccessConstraint.php
Same filename in other branches
Namespace
Drupal\Core\Entity\Plugin\Validation\ConstraintFile
-
core/
lib/ Drupal/ Core/ Entity/ Plugin/ Validation/ Constraint/ ReferenceAccessConstraint.php
View source
<?php
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).';
}
Classes
Title | Deprecated | Summary |
---|---|---|
ReferenceAccessConstraint | Entity Reference valid reference constraint. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.