You are here

public function GdprMyAgreementsBlock::getCacheTags in General Data Protection Regulation 8

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. 3.0.x modules/gdpr_consent/src/Plugin/Block/GdprMyAgreementsBlock.php \Drupal\gdpr_consent\Plugin\Block\GdprMyAgreementsBlock::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 ContextAwarePluginBase::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(),
  ]);
}