class MerciAllowOvernightConstraint in MERCI (Manage Equipment Reservations, Checkout and Inventory) 8.2
Checks that the node is assigned only a "leaf" term in the forum taxonomy.
Plugin annotation
@Constraint(
id = "MerciAllowOvernight",
label = @Translation("MerciAllowOvernight", context = "Validation"),
)
Hierarchy
- class \Drupal\merci\Plugin\Validation\Constraint\MerciAllowOvernightConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of MerciAllowOvernightConstraint
File
- src/
Plugin/ Validation/ Constraint/ MerciAllowOvernightConstraint.php, line 20 - Contains \Drupal\merci\Plugin\Validation\Constraint\MerciAllowOvernightConstraint.
Namespace
Drupal\merci\Plugin\Validation\ConstraintView source
class MerciAllowOvernightConstraint extends Constraint {
public $date_field;
public $overnight_field;
public $grouping_field;
public $message = 'Reservation can not go overnight.';
/**
** {@inheritdoc}
*/
public function getRequiredOptions() {
return array(
'date_field',
'overnight_field',
);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MerciAllowOvernightConstraint:: |
public | property | ||
MerciAllowOvernightConstraint:: |
public | property | ||
MerciAllowOvernightConstraint:: |
public | property | ||
MerciAllowOvernightConstraint:: |
public | property | ||
MerciAllowOvernightConstraint:: |
public | function |