You are here

public function PrivateMessageThread::getLastDeleteTimes in Private Message 8

Retrieve the last delete timestamps for all members of the thread.

Return value

Drupal\private_message\Entity\PrivateMessageThreadAccessTime[] An array of PrivateMessageLastDeleteTime entities

Overrides PrivateMessageThreadInterface::getLastDeleteTimes

2 calls to PrivateMessageThread::getLastDeleteTimes()
PrivateMessageThread::delete in src/Entity/PrivateMessageThread.php
Deletes an entity permanently.
PrivateMessageThread::deleteReferencedEntities in src/Entity/PrivateMessageThread.php
Delete the thread from the database, as well as all reference entities.

File

src/Entity/PrivateMessageThread.php, line 247

Class

PrivateMessageThread
Defines the Private Message Thread entity.

Namespace

Drupal\private_message\Entity

Code

public function getLastDeleteTimes() {
  return $this
    ->get('last_delete_time')
    ->referencedEntities();
}