diff --git a/CRM/Utils/System/Drupal8.php b/CRM/Utils/System/Drupal8.php index deb80cb60e45..920c1cdcebc5 100644 --- a/CRM/Utils/System/Drupal8.php +++ b/CRM/Utils/System/Drupal8.php @@ -847,4 +847,15 @@ public function sessionStart() { } } + /** + * Load the user object. + * + * @param int $userID + * + * @return object + */ + public function getUserObject($userID) { + return \Drupal::entityManager()->getStorage('user')->load($userID); + } + }