You are here

public function PrivateMessageThread::getCacheTags in Private Message 8.2

Same name and namespace in other branches
  1. 8 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 345

Class

PrivateMessageThread
Defines the Private Message Thread entity.

Namespace

Drupal\private_message\Entity

Code

public function getCacheTags() {
  $tags = parent::getCacheTags();
  $tags[] = 'private_message_thread:' . $this
    ->id() . ':view:uid:' . \Drupal::currentUser()
    ->id();
  return $tags;
}