You are here

public function SimpleBlockAddControllerSubscriber::__construct in Simple Block 8

Constructs a new event subscriber service instance.

Parameters

\Drupal\Core\Routing\ResettableStackedRouteMatchInterface $route_match: Current route match service.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

File

modules/simple_block_layout_builder/src/Event/Subscriber/SimpleBlockAddControllerSubscriber.php, line 55

Class

SimpleBlockAddControllerSubscriber
Alters the render array of Layout Builder ChooseBlockController::build().

Namespace

Drupal\simple_block_layout_builder\Event\Subscriber

Code

public function __construct(ResettableStackedRouteMatchInterface $route_match, AccountInterface $current_user) {
  $this->routeMatch = $route_match;
  $this->currentUser = $current_user;
}