You are here

public function TestMessage::setUid in Courier 8

Same name and namespace in other branches
  1. 2.x tests/modules/courier_test_message/src/Entity/TestMessage.php \Drupal\courier_test_message\Entity\TestMessage::setUid()

File

tests/modules/courier_test_message/src/Entity/TestMessage.php, line 34

Class

TestMessage
Defines storage for a test message.

Namespace

Drupal\courier_test_message\Entity

Code

public function setUid($uid) {
  $this
    ->set('uid', [
    'value' => $uid,
  ]);
  return $this;
}