function RouteCacheContext::getLabel

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php \Drupal\Core\Cache\Context\RouteCacheContext::getLabel()

File

core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php, line 35

Class

RouteCacheContext
Defines the RouteCacheContext service, for "per route" caching.

Namespace

Drupal\Core\Cache\Context

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.