You are here

public static function SocialGroupJoinMethodCacheContext::getLabel in Open Social 10.3.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_group/src/CacheContext/SocialGroupJoinMethodCacheContext.php \Drupal\social_group\CacheContext\SocialGroupJoinMethodCacheContext::getLabel()
  2. 10.0.x modules/social_features/social_group/src/CacheContext/SocialGroupJoinMethodCacheContext.php \Drupal\social_group\CacheContext\SocialGroupJoinMethodCacheContext::getLabel()
  3. 10.1.x modules/social_features/social_group/src/CacheContext/SocialGroupJoinMethodCacheContext.php \Drupal\social_group\CacheContext\SocialGroupJoinMethodCacheContext::getLabel()
  4. 10.2.x modules/social_features/social_group/src/CacheContext/SocialGroupJoinMethodCacheContext.php \Drupal\social_group\CacheContext\SocialGroupJoinMethodCacheContext::getLabel()

Returns the label of the cache context.

Return value

string The label of the cache context.

Overrides CacheContextInterface::getLabel

File

modules/social_features/social_group/src/CacheContext/SocialGroupJoinMethodCacheContext.php, line 17

Class

SocialGroupJoinMethodCacheContext
Class SocialGroupJoinMethodCacheContext.

Namespace

Drupal\social_group\CacheContext

Code

public static function getLabel() {
  \Drupal::messenger()
    ->addMessage('Cache context for the join methods');
}