You are here

public function AddressBookInterface::needsCopy in Commerce Core 8.2

Checks if the profile needs to be copied to the customer's address book.

Parameters

\Drupal\profile\Entity\ProfileInterface $profile: The profile.

Return value

bool TRUE if the profile needs to be copied to the customer's address book, FALSE otherwise.

1 method overrides AddressBookInterface::needsCopy()
AddressBook::needsCopy in modules/order/src/AddressBook.php
Checks if the profile needs to be copied to the customer's address book.

File

modules/order/src/AddressBookInterface.php, line 112

Class

AddressBookInterface
Represents a customer's address book.

Namespace

Drupal\commerce_order

Code

public function needsCopy(ProfileInterface $profile);