You are here

class RegistrationGroupSibling in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Validation/Constraint/RegistrationGroupSibling.php \Drupal\rng\Plugin\Validation\Constraint\RegistrationGroupSibling
  2. 3.x src/Plugin/Validation/Constraint/RegistrationGroupSibling.php \Drupal\rng\Plugin\Validation\Constraint\RegistrationGroupSibling

Ensures group siblings do not have conflicts or unmet requirements.

Plugin annotation


@Constraint(
  id = "RegistrationGroupSibling",
  label = @Translation("Check a list of registration groups for conflicts or unmet requirements.", context = "Validation"),
)

Hierarchy

  • class \Drupal\rng\Plugin\Validation\Constraint\RegistrationGroupSibling extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of RegistrationGroupSibling

1 string reference to 'RegistrationGroupSibling'
Registration::baseFieldDefinitions in src/Entity/Registration.php
Provides base field definitions for an entity type.

File

src/Plugin/Validation/Constraint/RegistrationGroupSibling.php, line 15

Namespace

Drupal\rng\Plugin\Validation\Constraint
View source
class RegistrationGroupSibling extends Constraint {
  public $conflict = 'Group conflict: @group cannot co-exist with @group_conflict.';
  public $missingDependency = 'Group dependency not met: @group requires @group_dependent.';

}

Members