You are here

public function OpignoNotification::setUser in Opigno notifications 8

Same name and namespace in other branches
  1. 3.x src/Entity/OpignoNotification.php \Drupal\opigno_notification\Entity\OpignoNotification::setUser()

Sets the notification receiver.

Parameters

int $value: The notification receiver.

Return value

\Drupal\opigno_notification\OpignoNotificationInterface The called notification entity.

Overrides OpignoNotificationInterface::setUser

File

src/Entity/OpignoNotification.php, line 167

Class

OpignoNotification
Defines the opigno_notification entity.

Namespace

Drupal\opigno_notification\Entity

Code

public function setUser($value) {
  $this
    ->set('uid', $value);
  return $this;
}