You are here

public function SubscriberInterface::getUser in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/SubscriberInterface.php \Drupal\simplenews\SubscriberInterface::getUser()
  2. 3.x src/SubscriberInterface.php \Drupal\simplenews\SubscriberInterface::getUser()

Returns corresponding User object, if any.

Return value

\Drupal\user\UserInterface|null The corresponding User object, or NULL if the subscriber is not synced with a user.

1 method overrides SubscriberInterface::getUser()
Subscriber::getUser in src/Entity/Subscriber.php
Returns corresponding User object, if any.

File

src/SubscriberInterface.php, line 71

Class

SubscriberInterface
Provides an interface defining a contant message entity

Namespace

Drupal\simplenews

Code

public function getUser();