Skip to content
Snippets Groups Projects
Commit 3e48f1cc authored by Mark Jarrell's avatar Mark Jarrell
Browse files

Updates queries to work with D10.

parent 2ed70ada
Branches
No related tags found
No related merge requests found
......@@ -186,6 +186,7 @@ function polaris_room_reservation_form_validate(&$form, FormStateInterface $form
$input = $form_state->getUserInput();
$field_user = $input['field_user'][0]['target_id'];
$id = \Drupal::entityQuery('user')
->accessCheck(FALSE)
->condition('name', $field_user)
->execute();
......
......@@ -102,6 +102,7 @@ class PolarisPatronEventSubscriber implements EventSubscriberInterface {
*/
private function getLocation(\StdClass $data) {
$query = $this->entityTypeManager->getStorage('node')->getQuery()
->accessCheck(TRUE)
->condition('type', 'location')
->condition('field_polaris_id', $data->PatronOrgID, '=')
->execute();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment