You are here

public function BlockViewBuilder::__construct in Twig Tweak 3.1.x

Same name and namespace in other branches
  1. 3.x src/View/BlockViewBuilder.php \Drupal\twig_tweak\View\BlockViewBuilder::__construct()

Constructs a BlockViewBuilder object.

File

src/View/BlockViewBuilder.php, line 75

Class

BlockViewBuilder
Block view builder.

Namespace

Drupal\twig_tweak\View

Code

public function __construct(CacheableDependencyInterface $plugin_manager_block, ContextRepositoryInterface $context_repository, ContextHandlerInterface $context_handler, AccountInterface $account, RequestStack $request_stack, RouteMatchInterface $route_match, TitleResolverInterface $title_resolver) {
  $this->pluginManagerBlock = $plugin_manager_block;
  $this->contextRepository = $context_repository;
  $this->contextHandler = $context_handler;
  $this->account = $account;
  $this->requestStack = $request_stack;
  $this->routeMatch = $route_match;
  $this->titleResolver = $title_resolver;
}