public function AddressBookInterface::loadAll in Commerce Core 8.2
Loads all profiles for the given customer.
Ensures that the loaded profiles are available, by filtering them against $available_countries.
Parameters
\Drupal\user\UserInterface $customer: The customer.
string $profile_type_id: The profile type ID.
array $available_countries: List of country codes. If empty, all countries will be available.
Return value
\Drupal\profile\Entity\ProfileInterface[] The available profiles, keyed by profile ID.
1 method overrides AddressBookInterface::loadAll()
- AddressBook::loadAll in modules/
order/ src/ AddressBook.php - Loads all profiles for the given customer.
File
- modules/
order/ src/ AddressBookInterface.php, line 75
Class
- AddressBookInterface
- Represents a customer's address book.
Namespace
Drupal\commerce_orderCode
public function loadAll(UserInterface $customer, $profile_type_id, array $available_countries = []);