You are here

public function Subscriber::setUserId in Simplenews 8

Sets the corresponding user ID.

Parameters

string $uid: The corresponding user ID.

Overrides SubscriberInterface::setUserId

2 calls to Subscriber::setUserId()
Subscriber::fillFromAccount in src/Entity/Subscriber.php
Fill values from a user account.
Subscriber::postCreate in src/Entity/Subscriber.php
Acts on a created entity before hooks are invoked.

File

src/Entity/Subscriber.php, line 130

Class

Subscriber
Defines the simplenews subscriber entity.

Namespace

Drupal\simplenews\Entity

Code

public function setUserId($uid) {
  $this
    ->set('uid', $uid);
}