RegistrationGroupSibling.php in RNG - Events and Registrations 8.2
Same filename and directory in other branches
Namespace
Drupal\rng\Plugin\Validation\ConstraintFile
src/Plugin/Validation/Constraint/RegistrationGroupSibling.phpView source
<?php
namespace Drupal\rng\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Ensures group siblings do not have conflicts or unmet requirements.
*
* @Constraint(
* id = "RegistrationGroupSibling",
* label = @Translation("Check a list of registration groups for conflicts or unmet requirements.", context = "Validation"),
* )
*/
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.';
}
Classes
Name | Description |
---|---|
RegistrationGroupSibling | Ensures group siblings do not have conflicts or unmet requirements. |