public function PrivateMessageThread::getLastAccessTimes in Private Message 8
Get the PrivateMessageThreadAccessTime entites referenced by this thread.
Return value
\Drupal\private_message\Entity\PrivateMessageThreadAccessTime[] An array of PrivateMessageThreadAccessTime entities
Overrides PrivateMessageThreadInterface::getLastAccessTimes
1 call to PrivateMessageThread::getLastAccessTimes()
- 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 174
Class
- PrivateMessageThread
- Defines the Private Message Thread entity.
Namespace
Drupal\private_message\EntityCode
public function getLastAccessTimes() {
return $this
->get('last_access_time')
->referencedEntities();
}