public static function RouteIsAdminCacheContext::getLabel in Menu Per Role 8
Returns the label of the cache context.
Return value
string The label of the cache context.
Overrides CacheContextInterface::getLabel
File
- src/
Cache/ Context/ RouteIsAdminCacheContext.php, line 45
Class
- RouteIsAdminCacheContext
- Defines a cache context depending if the route is an admin route or not.
Namespace
Drupal\menu_per_role\Cache\ContextCode
public static function getLabel() {
return t('Route is admin');
}