You are here

public function GdprMyAgreementsBlock::getCacheTags in General Data Protection Regulation 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/gdpr_consent/src/Plugin/Block/GdprMyAgreementsBlock.php \Drupal\gdpr_consent\Plugin\Block\GdprMyAgreementsBlock::getCacheTags()
  2. 8 modules/gdpr_consent/src/Plugin/Block/GdprMyAgreementsBlock.php \Drupal\gdpr_consent\Plugin\Block\GdprMyAgreementsBlock::getCacheTags()

Overrides ContextAwarePluginTrait::getCacheTags

File

modules/gdpr_consent/src/Plugin/Block/GdprMyAgreementsBlock.php, line 106

Class

GdprMyAgreementsBlock
Provides a block to view a contact dashboard summary.

Namespace

Drupal\gdpr_consent\Plugin\Block

Code

public function getCacheTags() {
  return Cache::mergeTags(parent::getCacheTags(), [
    'user:' . $this->currentUser
      ->id(),
  ]);
}