ValidOgMembershipReferenceConstraint.php in Organic groups 8
Namespace
Drupal\og\Plugin\Validation\ConstraintFile
src/Plugin/Validation/Constraint/ValidOgMembershipReferenceConstraint.phpView source
<?php
declare (strict_types=1);
namespace Drupal\og\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Entity Reference valid reference constraint.
*
* Verifies that referenced entities are valid.
*
* @Constraint(
* id = "ValidOgMembershipReference",
* label = @Translation("Organic Groups valid reference", context = "Validation")
* )
*/
class ValidOgMembershipReferenceConstraint extends Constraint {
/**
* Not a valid group message.
*
* @var string
*/
public $notValidGroup = 'The entity %label is not defined as a group.';
}
Classes
Name | Description |
---|---|
ValidOgMembershipReferenceConstraint | Entity Reference valid reference constraint. |