You are here

class ValidOgMembershipReferenceConstraint in Organic groups 8

Entity Reference valid reference constraint.

Verifies that referenced entities are valid.

Plugin annotation


@Constraint(
  id = "ValidOgMembershipReference",
  label = @Translation("Organic Groups valid reference", context = "Validation")
)

Hierarchy

Expanded class hierarchy of ValidOgMembershipReferenceConstraint

File

src/Plugin/Validation/Constraint/ValidOgMembershipReferenceConstraint.php, line 19

Namespace

Drupal\og\Plugin\Validation\Constraint
View source
class ValidOgMembershipReferenceConstraint extends Constraint {

  /**
   * Not a valid group message.
   *
   * @var string
   */
  public $notValidGroup = 'The entity %label is not defined as a group.';

}

Members