You are here

public function PaymentMethodConfiguration::getOwner in Payment 8.2

Returns the entity owner's user entity.

Return value

\Drupal\user\UserInterface The owner user entity.

Overrides EntityOwnerInterface::getOwner

File

src/Entity/PaymentMethodConfiguration.php, line 155

Class

PaymentMethodConfiguration
Defines a payment method configuration entity.

Namespace

Drupal\payment\Entity

Code

public function getOwner() {
  return $this
    ->getUserStorage()
    ->load($this
    ->getOwnerId());
}