class MerciOpenHoursConstraint 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 = "MerciOpenHours",
label = @Translation("MerciOpenHours", context = "Validation"),
)
Hierarchy
- class \Drupal\merci\Plugin\Validation\Constraint\MerciOpenHoursConstraint extends \Symfony\Component\Validator\Constraint
Expanded class hierarchy of MerciOpenHoursConstraint
File
- src/
Plugin/ Validation/ Constraint/ MerciOpenHoursConstraint.php, line 20 - Contains \Drupal\merci\Plugin\Validation\Constraint\MerciOpenHoursConstraint.
Namespace
Drupal\merci\Plugin\Validation\ConstraintView source
class MerciOpenHoursConstraint extends Constraint {
public $date_field;
public $reservable_hours_field;
public $office_hours_field;
public $message = 'Reservation starts on a day we are closed.';
/**
** {@inheritdoc}
*/
public function getRequiredOptions() {
return array(
'date_field',
'reservable_hours_field',
'office_hours_field',
);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MerciOpenHoursConstraint:: |
public | property | ||
MerciOpenHoursConstraint:: |
public | property | ||
MerciOpenHoursConstraint:: |
public | property | ||
MerciOpenHoursConstraint:: |
public | property | ||
MerciOpenHoursConstraint:: |
public | function |