public function PrivateMessageThread::getCacheTags in Private Message 8
Same name and namespace in other branches
- 8.2 src/Entity/PrivateMessageThread.php \Drupal\private_message\Entity\PrivateMessageThread::getCacheTags()
The cache tags associated with this object.
When this object is modified, these cache tags will be invalidated.
Return value
string[] A set of cache tags.
Overrides EntityBase::getCacheTags
File
- src/
Entity/ PrivateMessageThread.php, line 434
Class
- PrivateMessageThread
- Defines the Private Message Thread entity.
Namespace
Drupal\private_message\EntityCode
public function getCacheTags() {
$tags = parent::getCacheTags();
$tags[] = 'private_message_thread:' . $this
->id() . ':view:uid:' . \Drupal::currentUser()
->id();
return $tags;
}