Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CurrentUser.php

function CurrentUser::getCacheContexts

Overrides CacheableDependencyInterface::getCacheContexts

File

core/modules/user/src/Plugin/views/argument_default/CurrentUser.php, line 39

Class

CurrentUser
Default argument plugin to extract the current user.

Namespace

Drupal\user\Plugin\views\argument_default

Code

public function getCacheContexts() {
    return [
        'user',
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal