public function RedirectOnAccessDeniedSubscriber::__construct in Opigno dashboard 3.x
Same name and namespace in other branches
- 8 src/EventSubscriber/RedirectOnAccessDeniedSubscriber.php \Drupal\opigno_dashboard\EventSubscriber\RedirectOnAccessDeniedSubscriber::__construct()
Constructs a new ResponseSubscriber instance.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: The current user.
File
- src/
EventSubscriber/ RedirectOnAccessDeniedSubscriber.php, line 36
Class
- RedirectOnAccessDeniedSubscriber
- Class RedirectOnAccessDeniedSubscriber.
Namespace
Drupal\opigno_dashboard\EventSubscriberCode
public function __construct(AccountInterface $current_user) {
$this->user = $current_user;
}