You are here

class GroupSubgroupConstraint in Subgroup (Graph) 1.0.x

Validation constraint for the group subgroup reference.

Plugin annotation


@Constraint(
  id = "GroupSubgroup",
  label = @Translation("Group subgroup", context = "Validation"),
  type = {"entity"}
)

Hierarchy

  • class \Drupal\ggroup\Plugin\Validation\Constraint\GroupSubgroupConstraint extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of GroupSubgroupConstraint

File

src/Plugin/Validation/Constraint/GroupSubgroupConstraint.php, line 16

Namespace

Drupal\ggroup\Plugin\Validation\Constraint
View source
class GroupSubgroupConstraint extends Constraint {
  public $message = '%parent_group_label is already a subgroup of the group %child_group_label. Adding %child_group_label as a subgroup will cause a circular reference.';

}

Members