You are here

public function ProfileStorageInterface::loadDefaultByUser in Profile 8

Loads the given user's default profile.

Parameters

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

string $profile_type_id: The profile type ID.

Return value

\Drupal\profile\Entity\ProfileInterface|null The profile. NULL if no matching entity was found.

Deprecated

in Profile 1.0. Use loadByUser() instead.

1 method overrides ProfileStorageInterface::loadDefaultByUser()
ProfileStorage::loadDefaultByUser in src/ProfileStorage.php
Loads the given user's default profile.

File

src/ProfileStorageInterface.php, line 60

Class

ProfileStorageInterface
Defines an interface for profile entity storage.

Namespace

Drupal\profile

Code

public function loadDefaultByUser(AccountInterface $account, $profile_type_id);