Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $profile_type = 'my_profile';
- $user_id = 1;
- $current_user = User::load($user_id);
- $active_profile = $this->entityTypeManager()->getStorage('profile')->loadByUser($current_user, $profile_type);
- print_r($active_profile);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement