You are here

public function GdprMyAgreementsBlock::getCacheContexts 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::getCacheContexts()
  2. 8 modules/gdpr_consent/src/Plugin/Block/GdprMyAgreementsBlock.php \Drupal\gdpr_consent\Plugin\Block\GdprMyAgreementsBlock::getCacheContexts()

Overrides ContextAwarePluginTrait::getCacheContexts

File

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

Class

GdprMyAgreementsBlock
Provides a block to view a contact dashboard summary.

Namespace

Drupal\gdpr_consent\Plugin\Block

Code

public function getCacheContexts() {

  // Vary caching of this block per user.
  return Cache::mergeContexts(parent::getCacheContexts(), [
    'user',
  ]);
}