public function UserEmailVerificationNotificationBlock::getCacheTags in User email verification 8
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 ContextAwarePluginBase::getCacheTags
File
- src/
Plugin/ Block/ UserEmailVerificationNotificationBlock.php, line 148
Class
- UserEmailVerificationNotificationBlock
- Block to display 'You have to verify your Email' notification.
Namespace
Drupal\user_email_verification\Plugin\BlockCode
public function getCacheTags() {
return Cache::mergeTags(parent::getCacheTags(), [
'user:' . $this->currentUser
->id(),
]);
}