public function ReservationConflicts::conflictingEntities in MERCI (Manage Equipment Reservations, Checkout and Inventory) 8.2
File
- src/
ReservationConflicts.php, line 327 - 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 conflictingEntities($date, $item = NULL) {
$date_value = $date
->get('value')
->getValue();
$query = $this
->buildConflictQuery($date, $item);
$query
->addTag('debug');
$result = $query
->execute();
$line_item_entities = \Drupal::entityTypeManager()
->getStorage($this->entity
->getEntityTypeId())
->loadMultiple($result);
return $line_item_entities;
}