public function RouteIsAdminCacheContext::__construct in Menu Per Role 8
RouteIsAdminCacheContext constructor.
Parameters
\Drupal\Core\Routing\AdminContext $adminContext: The router admin context service.
File
- src/
Cache/ Context/ RouteIsAdminCacheContext.php, line 36
Class
- RouteIsAdminCacheContext
- Defines a cache context depending if the route is an admin route or not.
Namespace
Drupal\menu_per_role\Cache\ContextCode
public function __construct(AdminContext $adminContext) {
$this->adminContext = $adminContext;
}