You are here

public function ProfileStorageInterface::loadMultipleByUser in Profile 8

Loads the given user's profiles.

Parameters

\Drupal\Core\Session\AccountInterface $account: The user.

string $profile_type_id: The profile type ID.

bool $published: Whether to load published or unpublished profiles. Defaults to published.

Return value

\Drupal\profile\Entity\ProfileInterface[] The profiles, ordered by publishing status and ID, descending.

1 method overrides ProfileStorageInterface::loadMultipleByUser()
ProfileStorage::loadMultipleByUser in src/ProfileStorage.php
Loads the given user's profiles.

File

src/ProfileStorageInterface.php, line 26

Class

ProfileStorageInterface
Defines an interface for profile entity storage.

Namespace

Drupal\profile

Code

public function loadMultipleByUser(AccountInterface $account, $profile_type_id, $published = TRUE);