You are here

private function MenuLinkContentVisibilityCache::__construct in Custom Menu Links Visibility 8

File

src/MenuLinkContentVisibilityCache.php, line 45

Class

MenuLinkContentVisibilityCache

Namespace

Drupal\menu_link_content_visibility

Code

private function __construct($menu_link_content, ConditionManager $condition_manager, ContextRepositoryInterface $context_repository, ContextHandler $context_handler) {
  $this->menu_link_content = $menu_link_content;
  $this->condition_manager = $condition_manager;
  $this->context_repository = $context_repository;
  $this->context_handler = $context_handler;
  $this->conditions = $this
    ->buildConditions();
}