MerciMaxLengthConstraint.php in MERCI (Manage Equipment Reservations, Checkout and Inventory) 8.2
File
src/Plugin/Validation/Constraint/MerciMaxLengthConstraint.php
View source
<?php
namespace Drupal\merci\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraint;
class MerciMaxLengthConstraint extends Constraint {
public $date_field;
public $interval_field;
public $grouping_field;
public $message = 'Item cannot be reserved for longer than @interval @period.';
public function getRequiredOptions() {
return array(
'date_field',
'interval_field',
);
}
}