|
|
|
@ -171,9 +171,8 @@ class CalendarController extends ControllerBase {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$results = array(); |
|
|
|
|
$ids = \Drupal::service('entity_type.manager')->getStorage('reserve_reservation')->getQuery() |
|
|
|
|
//$ids = \Drupal::service('entity.query') |
|
|
|
|
// ->get('reserve_reservation') |
|
|
|
|
$ids = \Drupal::service('entity_type.manager') |
|
|
|
|
->getStorage('reserve_reservation')->getQuery() |
|
|
|
|
->condition('status', TRUE) |
|
|
|
|
->condition('reservation_date', $yyyy_mmdd . '%', 'like') |
|
|
|
|
->condition('reservation_ebundle', $ebundle) |
|
|
|
@ -359,7 +358,6 @@ class CalendarController extends ControllerBase {
|
|
|
|
|
t('To make a reservation, click on the desired time/day in the calendar below. You will be asked to login.'); |
|
|
|
|
$variables['#arrow'] = base_path() . drupal_get_path('module', 'reserve') . '/images/arrow-icon.png'; |
|
|
|
|
$variables['#date'] = \Drupal::service('date.formatter')->format(strtotime($month . ' ' . $xday . ', ' . $year), 'custom', 'l, F d, Y'); |
|
|
|
|
//$variables['#date'] = format_date(strtotime($month . ' ' . $xday . ', ' . $year), 'custom', 'l, F d, Y'); |
|
|
|
|
$variables['#date_picker'] = \Drupal::formBuilder()->getForm('Drupal\reserve\Form\CalendarDatePicker'); |
|
|
|
|
|
|
|
|
|
$field = reserve_category_fields($ebundle); |
|
|
|
|