You are here

public function PrivateMessageThreadDeleteTime::setDeleteTime in Private Message 8

Set the delete time for the thread that references this entity.

The delete time is unique for each member of the thread. If all members of the thread mark the thread as deleted, then the thread is hard deleted.

Parameters

int $timestamp: The Unix timestamp at which the thread was marked as deleted.

Overrides PrivateMessageThreadDeleteTimeInterface::setDeleteTime

File

src/Entity/PrivateMessageThreadDeleteTime.php, line 33

Class

PrivateMessageThreadDeleteTime
Defines the PrivateMessageThreadDeleteTime entity.

Namespace

Drupal\private_message\Entity

Code

public function setDeleteTime($timestamp) {
  $this
    ->set('delete_time', $timestamp);
  return $this;
}