public function ReservationConflicts::reservations in MERCI (Manage Equipment Reservations, Checkout and Inventory) 8.2
File
- src/
ReservationConflicts.php, line 415 - Contains \Drupal\merci\ReservationConflicts. Abstraction of the selection logic of an entity reference field.
Class
- ReservationConflicts
- A null implementation of EntityReference_SelectionHandler.
Namespace
Drupal\merciCode
public function reservations($dates, $exclude_id) {
$bestfit = $this
->bestFit($dates);
$reservations = array();
foreach ($bestfit as $enity_id => $reservation) {
$reservations[] = $entity_id;
}
return $reservations;
}