You are here

public function PaymentMethodConfiguration::setOwner in Payment 8.2

Sets the entity owner's user entity.

Parameters

\Drupal\user\UserInterface $account: The owner user entity.

Return value

$this

Overrides EntityOwnerInterface::setOwner

File

src/Entity/PaymentMethodConfiguration.php, line 139

Class

PaymentMethodConfiguration
Defines a payment method configuration entity.

Namespace

Drupal\payment\Entity

Code

public function setOwner(UserInterface $user) {
  $this->ownerId = $user
    ->id();
  return $this;
}