function BlockPlaceEventSubscriber::__construct
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.