You are here

ValidOgMembershipReferenceConstraint.php in Organic groups 8

File

src/Plugin/Validation/Constraint/ValidOgMembershipReferenceConstraint.php
View 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

Namesort descending Description
ValidOgMembershipReferenceConstraint Entity Reference valid reference constraint.