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
- class \Drupal\og\Plugin\Validation\Constraint\ValidOgMembershipReferenceConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of ValidOgMembershipReferenceConstraint
File
- src/
Plugin/ Validation/ Constraint/ ValidOgMembershipReferenceConstraint.php, line 19
Namespace
Drupal\og\Plugin\Validation\ConstraintView source
class ValidOgMembershipReferenceConstraint extends Constraint {
/**
* Not a valid group message.
*
* @var string
*/
public $notValidGroup = 'The entity %label is not defined as a group.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ValidOgMembershipReferenceConstraint:: |
public | property | Not a valid group message. |