public function GdprMyAgreementsBlock::getCacheContexts in General Data Protection Regulation 3.0.x
Same name and namespace in other branches
- 8.2 modules/gdpr_consent/src/Plugin/Block/GdprMyAgreementsBlock.php \Drupal\gdpr_consent\Plugin\Block\GdprMyAgreementsBlock::getCacheContexts()
- 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\BlockCode
public function getCacheContexts() {
// Vary caching of this block per user.
return Cache::mergeContexts(parent::getCacheContexts(), [
'user',
]);
}