You are here

public function ProfileFieldCopy::__construct in Commerce Shipping 8.2

Constructs a new ProfileFieldCopy object.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current user.

File

src/ProfileFieldCopy.php, line 44

Class

ProfileFieldCopy
Default implementation of profile field copying ("Billing same as shipping").

Namespace

Drupal\commerce_shipping

Code

public function __construct(AccountInterface $current_user) {
  $this->currentUser = $current_user;
}