public function OgGroupContextCacheContext::__construct in Organic groups 8
Constructs a new UserCacheContextBase class.
Parameters
\Drupal\og\OgContextInterface $og_context: The OG context provider.
File
- src/
Cache/ Context/ OgGroupContextCacheContext.php, line 41
Class
- OgGroupContextCacheContext
- Defines a cache context service for the currently active group.
Namespace
Drupal\og\Cache\ContextCode
public function __construct(OgContextInterface $og_context) {
$this->ogContext = $og_context;
}