You are here

public static function Ip2CountryCacheContext::getLabel in IP-based Determination of a Visitor's Country 8

Returns the label of the cache context.

Return value

string The label of the cache context.

Overrides CacheContextInterface::getLabel

File

src/Cache/Context/Ip2CountryCacheContext.php, line 41

Class

Ip2CountryCacheContext
Defines the Ip2CountryCacheContext service, for "per country" caching.

Namespace

Drupal\ip2country\Cache\Context

Code

public static function getLabel() {
  return t('Country based on IP address');
}