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

Breadcrumb

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

function UserCacheContext::getLabel

Overrides CacheContextInterface::getLabel

File

core/lib/Drupal/Core/Cache/Context/UserCacheContext.php, line 17

Class

UserCacheContext
Defines the UserCacheContext service, for "per user" caching.

Namespace

Drupal\Core\Cache\Context

Code

public static function getLabel() {
    return t('User');
}

API Navigation

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