public function BlockPlaceEventSubscriber::__construct in Drupal 8
Constructs a \Drupal\block_place\EventSubscriber\BlockPlaceEventSubscriber object.
Parameters
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack used to retrieve the current request.
\Drupal\Core\Session\AccountInterface $account: The current user.
File
- core/
modules/ block_place/ src/ EventSubscriber/ BlockPlaceEventSubscriber.php, line 38
Class
Namespace
Drupal\block_place\EventSubscriberCode
public function __construct(RequestStack $request_stack, AccountInterface $account) {
$this->requestStack = $request_stack;
$this->account = $account;
}